/* ============================================
   TIMEWASTED.IO - Dark, impactful, viral
   ============================================ */

:root {
    --bg: #0a0a0a;
    --bg-card: #141414;
    --bg-card-hover: #1a1a1a;
    --text: #f0f0f0;
    --text-muted: #666;
    --text-dim: #444;
    --accent: #764ba2;
    --accent-light: #667eea;
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --red: #ff4757;
    --red-glow: rgba(255, 71, 87, 0.3);
    --green: #2ed573;
    --radius: 12px;
    --radius-sm: 8px;
    --font: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Noise texture overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    pointer-events: none;
    z-index: 9999;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ---- NAV ---- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 2rem;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav__logo {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav__lang {
    background: none;
    border: 1px solid var(--text-dim);
    border-radius: 100px;
    padding: 0.4rem 1rem;
    color: var(--text-muted);
    font-family: var(--font);
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
}

.nav__lang:hover {
    border-color: var(--text-muted);
    color: var(--text);
}

.nav__lang-option {
    transition: var(--transition);
}

.nav__lang-option.active {
    color: var(--text);
    font-weight: 600;
}

.nav__lang-sep {
    margin: 0 0.25rem;
}

/* ---- HERO ---- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6rem 1.5rem 3rem;
    max-width: 800px;
    margin: 0 auto;
}

.hero__content {
    text-align: center;
    margin-bottom: 3rem;
}

.hero__pre {
    font-size: 1.8rem;
    color: #dadada;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.hero__title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
    min-height: 1.2em;
}

.hero__title--accent {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__typing {
    display: inline;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #ff4757 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero__cursor {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 300;
    animation: blink 0.8s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero__subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto;
    font-weight: 300;
}

/* ---- STEPS ---- */
.step {
    width: 100%;
    display: none;
    animation: fadeUp 0.5s ease;
}

.step--active {
    display: block;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.step__title {
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 0.5rem;
}

.step__desc {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.step__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* ---- HABITS GRID ---- */
.habits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.habit-card {
    background: var(--bg-card);
    border: 2px solid transparent;
    border-radius: var(--radius);
    padding: 1.25rem 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font);
    color: var(--text);
    font-size: 0.85rem;
    text-align: center;
}

.habit-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--text-dim);
    transform: translateY(-2px);
}

.habit-card.selected {
    border-color: var(--accent);
    background: rgba(118, 75, 162, 0.15);
    box-shadow: 0 0 20px rgba(118, 75, 162, 0.2);
}

.habit-card__icon {
    width: 32px;
    height: 32px;
    color: var(--accent-light);
    transition: var(--transition);
}

.habit-card__icon svg {
    width: 100%;
    height: 100%;
}

.habit-card.selected .habit-card__icon {
    color: var(--text);
}

.habit-card__label {
    font-weight: 500;
    line-height: 1.3;
}

/* ---- HABIT CONFIG (Step 2) ---- */
.habit-config {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
    animation: fadeUp 0.4s ease;
}

.habit-config__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.habit-config__fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.field__label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.field__input-wrap {
    display: flex;
    align-items: center;
    background: var(--bg);
    border: 1px solid var(--text-dim);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: var(--transition);
}

.field__input-wrap:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(118, 75, 162, 0.2);
}

.field__input {
    flex: 1;
    background: none;
    border: none;
    color: var(--text);
    font-family: var(--font);
    font-size: 1.5rem;
    font-weight: 700;
    padding: 0.75rem 1rem;
    width: 100%;
    outline: none;
    -moz-appearance: textfield;
}

.field__input::-webkit-inner-spin-button,
.field__input::-webkit-outer-spin-button {
    -webkit-appearance: none;
}

.field__suffix {
    padding-right: 1rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
}

.habit-config__icon {
    width: 24px;
    height: 24px;
    color: var(--accent-light);
}

.habit-config__icon svg {
    width: 100%;
    height: 100%;
}

/* ---- BUTTONS ---- */
.btn {
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 600;
    padding: 0.9rem 2rem;
    border-radius: 100px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn--primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 4px 20px rgba(118, 75, 162, 0.4);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(118, 75, 162, 0.6);
}

.btn--primary:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn--ghost {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--text-dim);
}

.btn--ghost:hover {
    border-color: var(--text-muted);
    color: var(--text);
}

.btn--reveal {
    font-size: 1.15rem;
    padding: 1.1rem 2.5rem;
    position: relative;
    overflow: hidden;
    text-align: center;
    justify-content: center;
    width: 100%;
}

.btn--reveal::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.btn--restart {
    margin: 0 auto;
    display: flex;
}

.btn--next {
    display: block;
    margin: 0 auto;
}

/* ---- RESULTS ---- */
.results {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

/* ---- VERDICT (bloc 1) ---- */
.verdict {
    text-align: center;
    padding: 4rem 0 3rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards;
}

.verdict__label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--red);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.verdict__title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 400;
    line-height: 1.4;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.verdict__days {
    display: block;
    font-size: clamp(5rem, 15vw, 10rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    margin: 0.25rem 0;
    color: var(--red);
    text-shadow: 0 0 60px var(--red-glow), 0 0 120px rgba(255, 71, 87, 0.15);
}

.verdict__breakdown {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.verdict__stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.verdict__stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text);
}

.verdict__stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-dim);
}

.verdict__sep {
    color: var(--text-dim);
    font-size: 1.5rem;
}

.verdict__punch {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 300;
    font-style: italic;
    opacity: 0;
    transition: opacity 1s ease 1.5s;
}

.verdict__punch.visible {
    opacity: 1;
}

/* ---- LIFE BAR ---- */
.life-bar {
    margin-bottom: 3.5rem;
    padding: 2.5rem;
    background: var(--bg-card);
    border-radius: var(--radius);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.life-bar.visible {
    opacity: 1;
    transform: translateY(0);
}

.life-bar__intro {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.life-bar__track {
    height: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 100px;
    overflow: hidden;
    position: relative;
    margin-bottom: 1rem;
}

.life-bar__fill {
    height: 100%;
    background: linear-gradient(90deg, #ff4757, #ff6b81, #ff4757);
    background-size: 200% 100%;
    border-radius: 100px;
    transition: width 2.5s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 0 30px var(--red-glow);
    animation: barPulse 2s ease-in-out infinite;
    position: relative;
}

@keyframes barPulse {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.life-bar__label {
    text-align: center;
    font-size: 1rem;
    color: var(--text-muted);
}

.life-bar__percent {
    font-size: 3rem;
    font-weight: 800;
    color: var(--red);
    line-height: 1;
}

.life-bar__percent-sign {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--red);
}

.life-bar__gut {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-dim);
    font-style: italic;
    min-height: 1.5em;
}

/* ---- GLADWELL 10,000 HOURS ---- */
.gladwell {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    border-left: 3px solid var(--accent);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.gladwell.visible {
    opacity: 1;
    transform: translateY(0);
}

.gladwell__icon {
    width: 36px;
    height: 36px;
    margin: 0 auto 1rem;
    color: var(--accent-light);
}

.gladwell__icon svg {
    width: 100%;
    height: 100%;
}

.gladwell__quote {
    margin-bottom: 1.5rem;
}

.gladwell__quote p {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.gladwell__quote cite {
    font-size: 0.85rem;
    color: var(--text-dim);
    font-style: normal;
}

.gladwell__stat {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.gladwell__hours {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
}

.gladwell__mastery {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin: 0.25rem 0;
    line-height: 1.2;
}

/* ---- WAKEUP ---- */
.wakeup {
    text-align: center;
    padding: 3rem 2rem;
    margin-bottom: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.wakeup.visible {
    opacity: 1;
    transform: translateY(0);
}

.wakeup__title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--green);
    margin-bottom: 1rem;
}

.wakeup__text {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
    max-width: 550px;
    margin: 0 auto 1rem;
}

.wakeup__cta {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
}

.gladwell__burn {
    margin-top: 1.25rem;
    font-size: 1rem;
    color: var(--red);
    font-weight: 500;
}

/* ---- EQUIVALENCES ---- */
.equivalences {
    margin-bottom: 3.5rem;
}

.equivalences__header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.equivalences__pretitle {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-muted);
    display: inline;
}

.equivalences__hours {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);
    margin: 0 0.25rem;
}

.equivalences__outro {
    text-align: center;
    margin-top: 2.5rem;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--red);
    opacity: 0;
    transition: opacity 0.8s ease;
}

.equivalences__outro.visible {
    opacity: 1;
}

.equivalences__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.eq-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.eq-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.eq-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-3px);
}

.eq-card__icon {
    width: 28px;
    height: 28px;
    margin: 0 auto 0.5rem;
    display: block;
    color: var(--accent-light);
}

.eq-card__icon svg {
    width: 100%;
    height: 100%;
}

.eq-card__verb {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.15rem;
}

.eq-card__value {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.eq-card__noun {
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 500;
    margin-top: 0.15rem;
}

.eq-card__verb {
    font-weight: 600;
    color: var(--text);
}

/* ---- SHARE ---- */
.share {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2.5rem;
    background: var(--bg-card);
    border-radius: var(--radius);
}

.share__title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.share__subtitle {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.share__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.share__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.25rem;
    border-radius: 100px;
    border: 1px solid var(--text-dim);
    background: transparent;
    color: var(--text);
    font-family: var(--font);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.share__btn:hover {
    transform: translateY(-2px);
}

.share__btn--x:hover { border-color: #1da1f2; color: #1da1f2; }
.share__btn--fb:hover { border-color: #4267B2; color: #4267B2; }
.share__btn--li:hover { border-color: #0077b5; color: #0077b5; }
.share__btn--wa:hover { border-color: #25D366; color: #25D366; }
.share__btn--copy:hover { border-color: var(--accent); color: var(--accent); }

.share__copied {
    margin-top: 0.75rem;
    color: var(--green);
    font-size: 0.85rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.share__copied.show {
    opacity: 1;
}

/* ---- RESTART ---- */
.restart {
    text-align: center;
    margin-bottom: 3rem;
}

/* ---- ABOUT (SEO) ---- */
.about {
    max-width: 700px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.about__title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}

.about__content p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.8;
}

/* ---- FOOTER ---- */
.footer {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--text-dim);
    font-size: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.footer p:first-child {
    letter-spacing: 0.02em;
}

.footer__mail {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    padding: 0.35rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 100px;
    transition: var(--transition);
}

.footer__mail:hover {
    color: var(--accent-light);
    border-color: rgba(102, 126, 234, 0.3);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 600px) {
    .nav { padding: 1rem; }
    .hero { padding: 5rem 1rem 2rem; }
    .habits-grid { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
    .habit-card { padding: 1rem 0.5rem; }
    .habit-card__icon { font-size: 1.5rem; }
    .habit-card__label { font-size: 0.75rem; }
    .habit-config__fields { grid-template-columns: 1fr; }
    .field__input { font-size: 1.25rem; }
    .step__actions { flex-direction: column; }
    .results { padding: 1rem 1rem 3rem; }
    .equivalences__grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
    .eq-card { padding: 1rem; }
    .eq-card__value { font-size: 1.8rem; }
    .share { padding: 1.5rem; }
    .share__buttons { flex-direction: column; align-items: stretch; }
    .share__btn { justify-content: center; }
}

/* ---- UTILITIES ---- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
