/* ================================================================
   TypingTips.in — Homepage Stylesheet
   Palette: Seafoam Teal (#3ECFBF) on deep navy (dark) /
            cool off-white (light). Eye-relaxing & modern.
================================================================ */

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
    /* Accent */
    --h-accent:       #3ECFBF;
    --h-accent-dk:    #2BB8A8;
    --h-glow:         rgba(62,207,191,0.15);
    /* Dark theme defaults */
    --h-bg:           #0E1117;
    --h-surface:      #161D2D;
    --h-card:         #1C2438;
    --h-border:       rgba(255,255,255,0.08);
    --h-text:         #DDE3EE;
    --h-muted:        #8895A7;
    --h-invert-btn:   #0E1117;
    /* Language colours */
    --c-hindi:   #FF9933;
    --c-english: #3ECFBF;
    --c-punjabi: #58C87A;
}

/* light theme — toggled by JS adding .tt-light to <body> */
body.tt-light {
    --h-bg:          #F0F5FB;
    --h-surface:     #E4EAF4;
    --h-card:        #FFFFFF;
    --h-border:      rgba(0,0,0,0.08);
    --h-text:        #1A202C;
    --h-muted:       #627087;
    --h-invert-btn:  #FFFFFF;
}

/* ── Reset + Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
body {
    background-color: var(--h-bg) !important;
    color: var(--h-text);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
                 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.65;
    transition: background-color .3s, color .3s;
}
/* Nav + footer match page background */
nav    { background-color: var(--h-bg) !important; }
footer { background-color: var(--h-bg) !important; }

/* ── Layout helpers ────────────────────────────────────────── */
.hp-section   { padding: 72px 0; }
.hp-section.alt { background: var(--h-surface); }
.hp-container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

.hp-label {
    font-size: .7rem; font-weight: 700; letter-spacing: 2.5px;
    text-transform: uppercase; color: var(--h-accent); margin-bottom: 8px;
}
.hp-title {
    font-size: clamp(1.7rem, 3.2vw, 2.3rem);
    font-weight: 800; color: var(--h-text);
    margin: 0 0 10px; line-height: 1.2;
}
.hp-sub {
    font-size: 1rem; color: var(--h-muted);
    margin-bottom: 44px; max-width: 540px;
}

/* ── Buttons ───────────────────────────────────────────────── */
.hp-btn-primary {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--h-accent); color: var(--h-invert-btn);
    font-weight: 700; font-size: .95rem;
    padding: 13px 28px; border-radius: 10px;
    text-decoration: none; border: none; cursor: pointer;
    transition: background .2s, transform .15s, box-shadow .2s;
    white-space: nowrap;
}
.hp-btn-primary:hover {
    background: var(--h-accent-dk); color: var(--h-invert-btn);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px var(--h-glow);
}
.hp-btn-outline {
    display: inline-flex; align-items: center; gap: 8px;
    background: transparent; color: var(--h-text);
    font-weight: 600; font-size: .9rem;
    padding: 12px 24px; border-radius: 10px;
    border: 1.5px solid var(--h-border);
    text-decoration: none; cursor: pointer;
    transition: border-color .2s, color .2s, background .2s;
    white-space: nowrap;
}
.hp-btn-outline:hover {
    border-color: var(--h-accent);
    color: var(--h-accent);
    background: var(--h-glow);
}

/* ================================================================
   HERO
================================================================ */
.hp-hero {
    padding: 62px 0 68px;
    position: relative; overflow: hidden;
}
.hp-hero::before {
    content: '';
    position: absolute; top: -100px; right: -160px;
    width: 560px; height: 560px;
    background: radial-gradient(circle, var(--h-glow) 0%, transparent 68%);
    pointer-events: none;
}
.hp-hero-inner {
    display: flex; align-items: center; gap: 52px; flex-wrap: wrap;
}
.hp-hero-left  { flex: 1 1 380px; }
.hp-hero-right { flex: 1 1 300px; max-width: 400px; }

/* Badge */
.hp-hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--h-glow); border: 1px solid var(--h-accent);
    color: var(--h-accent); font-size: .76rem; font-weight: 600;
    padding: 5px 14px; border-radius: 20px; margin-bottom: 22px;
    letter-spacing: .4px;
}
.hp-hero-badge .dot {
    width: 7px; height: 7px;
    background: var(--h-accent); border-radius: 50%;
    animation: hp-pulse 1.9s ease-in-out infinite;
}
@keyframes hp-pulse {
    0%,100% { opacity:1; transform:scale(1); }
    50%      { opacity:.45; transform:scale(1.5); }
}

/* Heading */
.hp-hero-title {
    font-size: clamp(2.4rem, 5.5vw, 3.8rem);
    font-weight: 900; line-height: 1.1;
    color: var(--h-text); margin-bottom: 18px;
}
.hp-hero-title .hl { color: var(--h-accent); }

.hp-hero-desc {
    font-size: 1.05rem; color: var(--h-muted);
    margin-bottom: 32px; max-width: 490px; line-height: 1.7;
    text-align: left;
}

/* CTA row */
.hp-cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Stats strip */
.hp-stats {
    display: flex; flex-wrap: wrap; gap: 28px;
    margin-top: 44px; padding-top: 28px;
    border-top: 1px solid var(--h-border);
}
.hp-stat-num   { font-size: 1.7rem; font-weight: 800; color: var(--h-accent); line-height: 1; }
.hp-stat-label { font-size: .74rem; color: var(--h-muted); text-transform: uppercase; letter-spacing: 1px; margin-top: 3px; }

/* Language launch pills (right column) */
.hp-lang-stack { display: flex; flex-direction: column; gap: 12px; }
.hp-lang-pill {
    display: flex; align-items: center; gap: 16px;
    background: var(--h-card); border: 1px solid var(--h-border);
    border-radius: 14px; padding: 16px 20px; text-decoration: none;
    transition: border-color .2s, transform .18s, box-shadow .2s;
}
.hp-lang-pill:hover {
    border-color: var(--h-accent);
    transform: translateX(8px);
    box-shadow: 0 4px 22px var(--h-glow);
}
.hp-lang-pill-icon {
    width: 46px; height: 46px; border-radius: 11px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; font-weight: 800; flex-shrink: 0;
}
.pill-hindi   .hp-lang-pill-icon { background: rgba(255,153,51,.14); color: var(--c-hindi);   }
.pill-english .hp-lang-pill-icon { background: rgba(62,207,191,.14); color: var(--c-english); }
.pill-punjabi .hp-lang-pill-icon { background: rgba(88,200,122,.14); color: var(--c-punjabi); }
.hp-lang-pill-name { font-weight: 700; font-size: .96rem; color: var(--h-text); margin: 0; }
.hp-lang-pill-sub  { font-size: .74rem; color: var(--h-muted); margin: 2px 0 0; }
.hp-lang-pill-arr  { margin-left: auto; color: var(--h-muted); font-size: .85rem; }

/* ================================================================
   TYPING TESTS
================================================================ */
.hp-tests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 22px;
}
.hp-test-card {
    background: var(--h-card); border: 1px solid var(--h-border);
    border-radius: 18px; padding: 28px;
    display: flex; flex-direction: column;
    transition: border-color .2s, transform .18s, box-shadow .2s;
}
.hp-test-card:hover {
    border-color: var(--h-accent);
    transform: translateY(-4px);
    box-shadow: 0 14px 40px rgba(0,0,0,0.22);
}
.hp-tc-top {
    display: flex; align-items: flex-start;
    justify-content: space-between; margin-bottom: 16px;
}
.hp-tc-icon {
    width: 52px; height: 52px; border-radius: 13px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; font-weight: 800;
}
.card-hindi   .hp-tc-icon { background: rgba(255,153,51,.13); color: var(--c-hindi);   }
.card-english .hp-tc-icon { background: rgba(62,207,191,.13); color: var(--c-english); }
.card-punjabi .hp-tc-icon { background: rgba(88,200,122,.13); color: var(--c-punjabi); }

.hp-tc-badge {
    font-size: .68rem; font-weight: 700; letter-spacing: .5px;
    padding: 3px 10px; border-radius: 20px;
    background: var(--h-glow); color: var(--h-accent);
    border: 1px solid var(--h-accent);
}
.hp-test-card h3 {
    font-size: 1.2rem; font-weight: 800; color: var(--h-text); margin-bottom: 7px;
}
.hp-test-card > p {
    font-size: .85rem; color: var(--h-muted);
    margin-bottom: 20px; line-height: 1.55; text-align: left;
}
.hp-tc-links { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 22px; }
.hp-tc-link {
    font-size: .78rem; font-weight: 600;
    padding: 6px 13px; border-radius: 8px;
    border: 1px solid var(--h-border);
    color: var(--h-text); text-decoration: none;
    transition: background .15s, border-color .15s, color .15s;
    white-space: nowrap;
}
.hp-tc-link:hover, .hp-tc-link.hp-featured {
    background: var(--h-accent); color: var(--h-invert-btn);
    border-color: var(--h-accent);
}
.hp-tc-footer {
    margin-top: auto; padding-top: 18px;
    border-top: 1px solid var(--h-border);
}
.hp-tc-footer a {
    font-size: .82rem; font-weight: 600; color: var(--h-accent);
    text-decoration: none; display: inline-flex; align-items: center; gap: 5px;
    transition: gap .15s;
}
.hp-tc-footer a:hover { gap: 11px; }

/* ================================================================
   TOOLS — CONVERTERS + DOWNLOADS
================================================================ */
.hp-tools-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
@media (max-width: 680px) { .hp-tools-grid { grid-template-columns: 1fr; } }

.hp-tool-panel {
    background: var(--h-card); border: 1px solid var(--h-border);
    border-radius: 18px; padding: 26px;
}
.hp-tool-panel h3 {
    font-size: 1rem; font-weight: 800; color: var(--h-text);
    margin-bottom: 18px; display: flex; align-items: center; gap: 10px;
}
.hp-panel-icon {
    width: 34px; height: 34px; border-radius: 9px;
    background: var(--h-glow);
    display: flex; align-items: center; justify-content: center;
    color: var(--h-accent); font-size: .95rem;
}
.hp-tool-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.hp-tool-list li a {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; border-radius: 10px;
    background: var(--h-surface); border: 1px solid var(--h-border);
    color: var(--h-text); font-size: .84rem; font-weight: 500;
    text-decoration: none;
    transition: border-color .15s, color .15s, background .15s;
}
.hp-tool-list li a:hover {
    border-color: var(--h-accent); color: var(--h-accent);
    background: var(--h-glow);
}
.hp-tool-list li a .tl-arr { margin-left: auto; color: var(--h-muted); font-size: .72rem; }
.hp-tool-list li a .tl-icon { font-size: .9rem; }

/* ================================================================
   FEATURES
================================================================ */
.hp-feat-grid {
    display: grid; grid-template-columns: repeat(4,1fr); gap: 16px;
}
@media (max-width: 820px) { .hp-feat-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 440px) { .hp-feat-grid { grid-template-columns: 1fr; } }

.hp-feat-card {
    background: var(--h-card); border: 1px solid var(--h-border);
    border-radius: 14px; padding: 22px 18px;
    transition: border-color .2s, transform .18s;
}
.hp-feat-card:hover { border-color: var(--h-accent); transform: translateY(-3px); }
.hp-feat-ico {
    width: 44px; height: 44px; border-radius: 11px;
    background: var(--h-glow);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem; margin-bottom: 14px; color: var(--h-accent);
}
.hp-feat-card h4 { font-size: .94rem; font-weight: 700; color: var(--h-text); margin-bottom: 6px; }
.hp-feat-card p  { font-size: .8rem; color: var(--h-muted); line-height: 1.5; text-align: left; }

/* ================================================================
   COMING SOON
================================================================ */
.hp-coming-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 600px) { .hp-coming-grid { grid-template-columns: 1fr; } }

.hp-coming-card {
    background: var(--h-card); border: 1.5px dashed var(--h-border);
    border-radius: 18px; padding: 40px 28px;
    text-align: center; position: relative; overflow: hidden;
}
.hp-coming-card::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 50% -10%, var(--h-glow) 0%, transparent 65%);
    pointer-events: none;
}
.hp-coming-tag {
    display: inline-block; font-size: .66rem; font-weight: 700;
    letter-spacing: 2px; text-transform: uppercase;
    color: var(--h-accent); border: 1px solid var(--h-accent);
    padding: 3px 11px; border-radius: 20px; margin-bottom: 14px;
    background: var(--h-glow);
}
.hp-coming-card h3 { font-size: 1.35rem; font-weight: 800; color: var(--h-text); margin-bottom: 10px; }
.hp-coming-card p  { font-size: .85rem; color: var(--h-muted); margin-bottom: 22px; line-height: 1.55; }
.hp-coming-chip {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: .8rem; font-weight: 600; color: var(--h-accent);
    border: 1px solid var(--h-accent); padding: 8px 18px;
    border-radius: 8px; opacity: .75;
}

/* ================================================================
   RESPONSIVE
================================================================ */
@media (max-width: 720px) {
    .hp-hero { padding: 60px 0 44px; }
    .hp-hero-inner { flex-direction: column; gap: 36px; }
    .hp-hero-right { max-width: 100%; width: 100%; }
    .hp-section { padding: 50px 0; }
}
@media (max-width: 480px) {
    .hp-hero-title { font-size: 2.1rem; }
    .hp-cta-row { flex-direction: column; }
    .hp-btn-primary, .hp-btn-outline { width: 100%; justify-content: center; }
    .hp-tests-grid { grid-template-columns: 1fr; }
}
