/* =====================================================================
   NS Technology - Main Stylesheet
   Colour themes are driven by CSS variables on <html data-theme="...">
   ===================================================================== */

/* ---------- Theme tokens ---------- */
:root,
[data-theme="ocean"] {
    --primary: #2563eb;
    --primary-2: #06b6d4;
    --accent: #f59e0b;
    --primary-soft: #e0ecff;
    --bg: #f5f8ff;
    --surface: #ffffff;
    --surface-2: #eef3fc;
    --text: #0f172a;
    --muted: #5b6477;
    --border: #dbe3f0;
    --hero-overlay: rgba(10, 25, 70, .62);
    --footer-bg: #0b1733;
}

[data-theme="sunset"] {
    --primary: #ea580c;
    --primary-2: #db2777;
    --accent: #7c3aed;
    --primary-soft: #ffe8dc;
    --bg: #fff8f3;
    --surface: #ffffff;
    --surface-2: #fff0e6;
    --text: #2a1310;
    --muted: #6d5650;
    --border: #f4dccf;
    --hero-overlay: rgba(70, 18, 30, .6);
    --footer-bg: #2a0f18;
}

[data-theme="emerald"] {
    --primary: #047857;
    --primary-2: #65a30d;
    --accent: #0ea5e9;
    --primary-soft: #d9f5e9;
    --bg: #f3fbf7;
    --surface: #ffffff;
    --surface-2: #e7f6ee;
    --text: #0c2219;
    --muted: #4c665b;
    --border: #cfe9dc;
    --hero-overlay: rgba(5, 45, 32, .62);
    --footer-bg: #062a1f;
}

[data-theme="royal"] {
    --primary: #7c3aed;
    --primary-2: #db2777;
    --accent: #06b6d4;
    --primary-soft: #efe5ff;
    --bg: #faf6ff;
    --surface: #ffffff;
    --surface-2: #f2eafe;
    --text: #1e1033;
    --muted: #645878;
    --border: #e4d8f6;
    --hero-overlay: rgba(40, 12, 70, .62);
    --footer-bg: #1b0b33;
}

[data-theme="midnight"] {
    --primary: #22d3ee;
    --primary-2: #a855f7;
    --accent: #f472b6;
    --primary-soft: #16283d;
    --bg: #0b1020;
    --surface: #131a2e;
    --surface-2: #1a2340;
    --text: #e6ebf7;
    --muted: #9aa6c1;
    --border: #26314f;
    --hero-overlay: rgba(5, 8, 20, .7);
    --footer-bg: #060913;
}

:root {
    --grad: linear-gradient(135deg, var(--primary), var(--primary-2));
    --on-primary: #ffffff;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 10px 30px rgba(15, 23, 42, .08);
    --shadow-lg: 0 20px 50px rgba(15, 23, 42, .14);
    --transition: all .3s ease;
    --header-h: 74px;
}
[data-theme="midnight"] { --on-primary: #06101f; --shadow: 0 10px 30px rgba(0,0,0,.35); --shadow-lg: 0 20px 50px rgba(0,0,0,.5); }

/* ---------- Base ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 10px); }
body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
    transition: background .4s ease, color .4s ease;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); }
.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.section { padding: 90px 0; }
.section-alt { background: var(--surface-2); }
.text-center { text-align: center; }
.gradient-text {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-head { text-align: center; max-width: 680px; margin: 0 auto 55px; }
.eyebrow {
    display: inline-block;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary);
    background: var(--primary-soft);
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); line-height: 1.2; margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}
.btn-primary { background: var(--grad); color: var(--on-primary); box-shadow: 0 8px 22px color-mix(in srgb, var(--primary) 35%, transparent); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 30px color-mix(in srgb, var(--primary) 45%, transparent); }
.btn-light { background: #fff; color: #0f172a; }
.btn-light:hover { background: transparent; color: #fff; border-color: #fff; }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--on-primary); }
.btn-ghost-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.5); backdrop-filter: blur(4px); }
.btn-ghost-light:hover { background: #fff; color: #0f172a; }
.btn-sm { padding: 9px 20px; font-size: .9rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    height: var(--header-h);
    z-index: 1000;
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 20px; }

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark {
    display: grid;
    place-items: center;
    width: 44px; height: 44px;
    border-radius: 12px;
    background: var(--grad);
    color: var(--on-primary);
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 1px;
    box-shadow: 0 6px 16px color-mix(in srgb, var(--primary) 40%, transparent);
}
.logo-text { font-weight: 800; font-size: 1.35rem; color: var(--text); letter-spacing: .5px; }
.logo-light .logo-text { color: #fff; }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav ul { list-style: none; display: flex; gap: 26px; }
.main-nav ul a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 6px 0;
}
.main-nav ul a::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 0; height: 3px;
    border-radius: 3px;
    background: var(--grad);
    transition: width .3s ease;
}
.main-nav ul a:hover::after, .main-nav ul a.active::after { width: 100%; }
.main-nav ul a.active { color: var(--primary); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
    width: 42px; height: 42px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--primary);
    font-size: 1.1rem;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: var(--transition);
}
.icon-btn:hover { background: var(--primary-soft); }
.menu-toggle { display: none; }

/* ---------- Theme picker ---------- */
.theme-picker { position: relative; }
.theme-menu {
    position: absolute;
    right: 0; top: 52px;
    width: 200px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: var(--transition);
}
.theme-menu.open { opacity: 1; visibility: visible; transform: translateY(0); }
.theme-menu-title { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); padding: 4px 8px 8px; }
.theme-swatch {
    display: flex; align-items: center; gap: 12px;
    width: 100%;
    padding: 8px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: .95rem;
    cursor: pointer;
    text-align: left;
}
.theme-swatch:hover, .theme-swatch.active { background: var(--surface-2); }
.theme-swatch span {
    width: 26px; height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--a), var(--b));
    box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--border);
    flex-shrink: 0;
}
.theme-swatch.active span { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--primary); }

/* ---------- Hero carousel ---------- */
.hero {
    position: relative;
    min-height: 620px;
    margin-top: var(--header-h);
    height: calc(100vh - var(--header-h));
    overflow: hidden;
    background: #0b1733;
}
.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    z-index: 1;
}
.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, var(--hero-overlay) 20%, color-mix(in srgb, var(--primary) 35%, transparent));
}
.hero-slide.active { opacity: 1; z-index: 2; }
.hero-slide .container { padding-inline: 70px; }
.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 720px;
    transform: translateY(40px);
    opacity: 0;
    transition: all 1s ease .3s;
}
.hero-slide.active .hero-content { transform: translateY(0); opacity: 1; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.3);
    padding: 7px 16px;
    border-radius: 50px;
    font-size: .85rem;
    font-weight: 500;
    margin-bottom: 20px;
    backdrop-filter: blur(6px);
}
.hero-content h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); line-height: 1.12; margin-bottom: 20px; font-weight: 800; }
.hero-content h1 em { font-style: normal; color: var(--accent); }
.hero-content p { font-size: clamp(1rem, 2vw, 1.25rem); margin-bottom: 32px; opacity: .92; max-width: 580px; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 52px; height: 52px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.35);
    background: rgba(255,255,255,.12);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    backdrop-filter: blur(6px);
    transition: var(--transition);
}
.hero-arrow:hover { background: #fff; color: #0f172a; }
.hero-arrow.prev { left: 24px; }
.hero-arrow.next { right: 24px; }
.hero-dots { position: absolute; bottom: 36px; left: 0; right: 0; display: flex; justify-content: center; gap: 10px; z-index: 10; }
.hero-dot {
    width: 12px; height: 12px;
    border-radius: 20px;
    border: none;
    background: rgba(255,255,255,.45);
    cursor: pointer;
    transition: var(--transition);
}
.hero-dot.active { width: 36px; background: var(--accent); }

/* ---------- Stats strip ---------- */
.stats { position: relative; z-index: 5; margin-top: -60px; }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    overflow: hidden;
}
.stat { padding: 30px 20px; text-align: center; border-right: 1px solid var(--border); }
.stat:last-child { border-right: none; }
.stat i { font-size: 1.6rem; margin-bottom: 8px; }
.stat:nth-child(1) i { color: #3b82f6; }
.stat:nth-child(2) i { color: #10b981; }
.stat:nth-child(3) i { color: #f59e0b; }
.stat:nth-child(4) i { color: #ec4899; }
.stat strong { display: block; font-size: 2rem; font-weight: 800; line-height: 1.2; }
.stat span { color: var(--muted); font-size: .9rem; }

/* ---------- Service cards ---------- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 26px; }
.service-card {
    --c1: #3b82f6; --c2: #06b6d4;
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 28px;
    transition: var(--transition);
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    background: linear-gradient(90deg, var(--c1), var(--c2));
}
.service-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.service-card:nth-child(2) { --c1: #f97316; --c2: #ec4899; }
.service-card:nth-child(3) { --c1: #10b981; --c2: #84cc16; }
.service-card:nth-child(4) { --c1: #8b5cf6; --c2: #d946ef; }
.service-icon {
    width: 64px; height: 64px;
    border-radius: 18px;
    display: grid; place-items: center;
    font-size: 1.6rem;
    color: #fff;
    background: linear-gradient(135deg, var(--c1), var(--c2));
    margin-bottom: 22px;
    box-shadow: 0 10px 22px color-mix(in srgb, var(--c1) 40%, transparent);
}
.service-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: .95rem; margin-bottom: 16px; }
.service-card .link { font-weight: 600; text-decoration: none; color: var(--c1); display: inline-flex; gap: 6px; align-items: center; }
.service-card .link:hover { gap: 10px; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 320px)); justify-content: center; gap: 26px; }
.team-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 28px;
    text-align: center;
    transition: var(--transition);
}
.team-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.team-avatar {
    width: 112px; height: 112px;
    margin: 0 auto 18px;
    border-radius: 50%;
    padding: 4px;
    background: var(--grad);
}
.team-avatar img, .team-avatar span {
    width: 100%; height: 100%;
    border-radius: 50%;
    border: 4px solid var(--surface);
    object-fit: cover;
    display: grid; place-items: center;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 2rem; font-weight: 700;
}
.team-card h3 { font-size: 1.2rem; margin-bottom: 4px; }
.team-name { color: inherit; text-decoration: none; }
.team-name:hover { color: var(--primary); }
.team-role { display: block; color: var(--primary); font-weight: 600; font-size: .9rem; margin-bottom: 12px; }
.team-card p { color: var(--muted); font-size: .95rem; }
.team-links { display: flex; justify-content: center; gap: 10px; margin-top: 18px; }
.team-links a {
    width: 38px; height: 38px;
    border-radius: 50%;
    display: grid; place-items: center;
    background: var(--primary-soft);
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}
.team-links a:hover { background: var(--primary); color: var(--on-primary); }

/* ---------- Pricing ---------- */
.billing-toggle {
    display: inline-flex;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 5px;
    margin: 0 auto 45px;
    box-shadow: var(--shadow);
}
.billing-toggle button {
    border: none;
    background: transparent;
    padding: 10px 24px;
    border-radius: 50px;
    font: inherit;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    transition: var(--transition);
}
.billing-toggle button.active { background: var(--grad); color: var(--on-primary); }
.billing-toggle .save { font-size: .72rem; background: var(--accent); color: #fff; padding: 2px 8px; border-radius: 20px; margin-left: 6px; }

.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; align-items: stretch; }
.plan-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 34px 28px;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}
.plan-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.plan-card.popular {
    border: 2px solid transparent;
    background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box;
    box-shadow: var(--shadow-lg);
}
.plan-ribbon {
    position: absolute;
    top: -14px; left: 50%;
    transform: translateX(-50%);
    background: var(--grad);
    color: var(--on-primary);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 5px 16px;
    border-radius: 50px;
    white-space: nowrap;
}
.plan-name { font-size: 1.3rem; font-weight: 700; }
.plan-tagline { color: var(--muted); font-size: .9rem; min-height: 44px; margin-bottom: 18px; }
.plan-price { margin-bottom: 6px; }
.plan-price .currency { font-size: 1rem; font-weight: 600; color: var(--muted); vertical-align: top; }
.plan-price .amount { font-size: 2.6rem; font-weight: 800; line-height: 1; }
.plan-price .period { color: var(--muted); font-size: .9rem; }
.plan-note { font-size: .8rem; color: var(--muted); min-height: 20px; margin-bottom: 20px; }
.plan-specs { list-style: none; background: var(--surface-2); border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 18px; }
.plan-specs li { display: flex; gap: 10px; align-items: center; font-weight: 600; font-size: .92rem; padding: 4px 0; }
.plan-specs i { color: var(--primary); width: 18px; text-align: center; }
.plan-features { list-style: none; margin-bottom: 26px; flex-grow: 1; }
.plan-features li { display: flex; gap: 10px; font-size: .92rem; padding: 5px 0; color: var(--muted); }
.plan-features i { color: #10b981; margin-top: 5px; font-size: .8rem; }

/* ---------- Why us / features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.feature {
    display: flex; gap: 18px;
    padding: 24px;
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: var(--transition);
}
.feature:hover { border-color: var(--primary); }
.feature-icon {
    flex-shrink: 0;
    width: 52px; height: 52px;
    border-radius: 14px;
    display: grid; place-items: center;
    font-size: 1.3rem;
    background: var(--primary-soft);
    color: var(--primary);
}
.feature h4 { font-size: 1.05rem; margin-bottom: 4px; }
.feature p { color: var(--muted); font-size: .9rem; }

/* ---------- Clients strip ---------- */
.clients-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.client-chip {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 22px 12px 12px;
    border-radius: 50px;
    background: var(--surface);
    border: 1px solid var(--border);
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    transition: var(--transition);
}
.client-chip:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.client-chip .avatar { width: 40px; height: 40px; font-size: .85rem; }

/* ---------- Testimonials ---------- */
.avatar {
    width: 56px; height: 56px;
    border-radius: 50%;
    display: grid; place-items: center;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--c1, var(--primary)), var(--c2, var(--primary-2)));
}
.tone-0 { --c1: #3b82f6; --c2: #06b6d4; }
.tone-1 { --c1: #f97316; --c2: #ec4899; }
.tone-2 { --c1: #10b981; --c2: #84cc16; }
.tone-3 { --c1: #8b5cf6; --c2: #d946ef; }

.testimonial-slider { position: relative; max-width: 900px; margin: 0 auto; }
.testimonial-track { overflow: hidden; border-radius: var(--radius); }
.testimonial-slides { display: flex; transition: transform .6s cubic-bezier(.65,0,.35,1); }
.testimonial-slide { min-width: 100%; padding: 6px; }

.testimonial-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.testimonial-card .quote-icon {
    position: absolute;
    top: 26px; right: 30px;
    font-size: 3.2rem;
    opacity: .15;
    color: var(--c1, var(--primary));
}
.stars { color: #fbbf24; margin-bottom: 14px; letter-spacing: 2px; }
.stars .off { color: var(--border); }
.testimonial-card blockquote { font-size: 1.05rem; line-height: 1.8; margin-bottom: 26px; flex-grow: 1; }
.testimonial-slider .testimonial-card blockquote { font-size: 1.15rem; }
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.testimonial-author strong { display: block; line-height: 1.3; }
.testimonial-author span { color: var(--muted); font-size: .88rem; display: block; }
.testimonial-links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--border); }
.testimonial-links a { font-size: .85rem; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.verified { display: inline-flex; align-items: center; gap: 5px; font-size: .75rem; font-weight: 600; color: #10b981; background: color-mix(in srgb, #10b981 12%, transparent); padding: 3px 10px; border-radius: 20px; }

.slider-controls { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 30px; }
.slider-btn {
    width: 46px; height: 46px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--primary);
    cursor: pointer;
    transition: var(--transition);
}
.slider-btn:hover { background: var(--grad); color: var(--on-primary); border-color: transparent; }
.slider-dots { display: flex; gap: 8px; }
.slider-dots button { width: 10px; height: 10px; border-radius: 10px; border: none; background: var(--border); cursor: pointer; transition: var(--transition); }
.slider-dots button.active { width: 30px; background: var(--grad); }

.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }

/* ---------- CTA band ---------- */
.cta-band {
    background: var(--grad);
    border-radius: 24px;
    padding: 60px 50px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}
.cta-band::after {
    content: '';
    position: absolute;
    width: 320px; height: 320px;
    border-radius: 50%;
    right: -80px; top: -120px;
    background: rgba(255,255,255,.12);
}
.cta-band h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); line-height: 1.2; margin-bottom: 8px; }
.cta-band p { opacity: .9; }
.cta-band > * { position: relative; z-index: 1; }
[data-theme="midnight"] .cta-band { color: #06101f; }
[data-theme="midnight"] .cta-band .btn-light { background: #06101f; color: #fff; }

/* ---------- Forms ---------- */
.form-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
    box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.form-group label .opt { color: var(--muted); font-weight: 400; }
.form-control {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--text);
    font: inherit;
    font-size: .95rem;
    transition: var(--transition);
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); background: var(--surface); }
textarea.form-control { resize: vertical; min-height: 130px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.rating-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.rating-input input { display: none; }
.rating-input label { font-size: 1.8rem; color: var(--border); cursor: pointer; margin: 0; transition: color .15s; }
.rating-input input:checked ~ label,
.rating-input label:hover,
.rating-input label:hover ~ label { color: #fbbf24; }

.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-weight: 500;
    display: flex; gap: 10px; align-items: flex-start;
}
.alert i { margin-top: 4px; }
.alert-success { background: color-mix(in srgb, #10b981 14%, var(--surface)); color: #047857; border: 1px solid color-mix(in srgb, #10b981 40%, transparent); }
.alert-error { background: color-mix(in srgb, #ef4444 12%, var(--surface)); color: #b91c1c; border: 1px solid color-mix(in srgb, #ef4444 40%, transparent); }
[data-theme="midnight"] .alert-success { color: #6ee7b7; }
[data-theme="midnight"] .alert-error { color: #fca5a5; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: start; }
.contact-info-card {
    background: var(--grad);
    color: #fff;
    border-radius: var(--radius);
    padding: 40px 34px;
    position: relative;
    overflow: hidden;
}
[data-theme="midnight"] .contact-info-card { color: #06101f; }
.contact-info-card::after {
    content: '';
    position: absolute;
    width: 220px; height: 220px;
    border-radius: 50%;
    bottom: -90px; right: -70px;
    background: rgba(255,255,255,.14);
}
.contact-info-card h3 { font-size: 1.6rem; margin-bottom: 10px; }
.contact-info-card > p { opacity: .9; margin-bottom: 26px; }
.contact-item { display: flex; gap: 16px; align-items: center; margin-bottom: 20px; position: relative; z-index: 1; }
.contact-item i {
    width: 46px; height: 46px;
    border-radius: 12px;
    background: rgba(255,255,255,.18);
    display: grid; place-items: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.contact-item small { display: block; opacity: .8; font-size: .8rem; }
.contact-item a, .contact-item span { color: inherit; text-decoration: none; font-weight: 600; word-break: break-word; }

/* ---------- Page banner (inner pages) ---------- */
.page-banner {
    margin-top: var(--header-h);
    background: var(--grad);
    color: #fff;
    padding: 80px 0 90px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
[data-theme="midnight"] .page-banner { color: #06101f; }
.page-banner::before, .page-banner::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
}
.page-banner::before { width: 380px; height: 380px; left: -120px; top: -160px; }
.page-banner::after { width: 260px; height: 260px; right: -60px; bottom: -120px; }
.page-banner h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.15; margin-bottom: 12px; position: relative; z-index: 1; }
.page-banner p { font-size: 1.1rem; opacity: .92; max-width: 640px; margin: 0 auto; position: relative; z-index: 1; }
.breadcrumb { font-size: .9rem; opacity: .85; margin-bottom: 14px; position: relative; z-index: 1; }
.breadcrumb a { color: inherit; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 14px;
    overflow: hidden;
}
.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 20px 24px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '\f067'; font-family: 'Font Awesome 6 Free'; font-weight: 900; color: var(--primary); transition: transform .3s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item[open] { border-color: var(--primary); }
.faq-item p { padding: 0 24px 20px; color: var(--muted); }

/* ---------- Checkout ---------- */
.checkout-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: start; }
.summary-card { position: sticky; top: calc(var(--header-h) + 20px); }
.summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--border); font-size: .95rem; }
.summary-row span:first-child { color: var(--muted); }
.summary-row span:last-child { font-weight: 600; text-align: right; }
.summary-total { display: flex; justify-content: space-between; align-items: center; padding-top: 16px; font-size: 1.15rem; font-weight: 700; }
.summary-total .amount { font-size: 1.6rem; }
.pay-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 6px; }
.pay-badge { font-weight: 800; font-size: .72rem; padding: 5px 10px; border-radius: 5px; color: #fff; letter-spacing: .5px; }
.badge-visa { background: #1a1f71; }
.badge-master { background: #eb001b; }
.badge-amex { background: #2e77bc; }
.badge-ezcash { background: #00a651; }
.badge-bank { background: #475569; }
.secure-note { font-size: .82rem; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; margin-top: 14px; }
.secure-note i { color: #10b981; margin-top: 3px; }
.cycle-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cycle-option { position: relative; }
.cycle-option input { position: absolute; opacity: 0; }
.cycle-option label {
    display: block;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    cursor: pointer;
    transition: var(--transition);
    margin: 0;
}
.cycle-option label strong { display: block; }
.cycle-option label small { color: var(--muted); font-weight: 400; }
.cycle-option input:checked + label { border-color: var(--primary); background: var(--primary-soft); }
.cycle-option input:focus-visible + label { box-shadow: 0 0 0 4px var(--primary-soft); }

.step-indicator { display: flex; gap: 10px; margin-bottom: 24px; flex-wrap: wrap; }
.step-indicator span { font-size: .85rem; font-weight: 600; padding: 6px 14px; border-radius: 30px; background: var(--surface-2); color: var(--muted); }
.step-indicator span.done { background: color-mix(in srgb, #10b981 15%, transparent); color: #10b981; }
.step-indicator span.current { background: var(--grad); color: var(--on-primary); }

/* ---------- Result card (success page) ---------- */
.result-card { max-width: 560px; margin: 0 auto; text-align: center; }
.result-icon {
    width: 90px; height: 90px;
    border-radius: 50%;
    display: grid; place-items: center;
    font-size: 2.4rem;
    margin: 0 auto 22px;
    color: #fff;
    background: linear-gradient(135deg, #10b981, #84cc16);
    box-shadow: 0 14px 30px rgba(16,185,129,.35);
}
.result-icon.pending { background: linear-gradient(135deg, #f59e0b, #f97316); box-shadow: 0 14px 30px rgba(245,158,11,.35); }
.receipt { text-align: left; background: var(--surface-2); border-radius: var(--radius-sm); padding: 20px 22px; margin: 24px 0 28px; }

.status-pill { display: inline-block; padding: 3px 12px; border-radius: 20px; font-size: .78rem; font-weight: 700; }
.status-Success { background: #d1fae5; color: #047857; }
.status-Pending { background: #fef3c7; color: #b45309; }
.status-Failed, .status-Canceled, .status-Chargedback { background: #fee2e2; color: #b91c1c; }
.status-Review { background: #e0e7ff; color: #4338ca; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); color: #b8c2d6; padding-top: 70px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 50px; }
.footer-brand p { margin: 18px 0 22px; font-size: .92rem; }
.site-footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 18px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 10px; font-size: .92rem; }
.site-footer a { color: #b8c2d6; text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 10px; }
.footer-contact i { color: var(--primary-2); margin-top: 5px; }
.socials { display: flex; gap: 10px; }
.socials a {
    width: 40px; height: 40px;
    border-radius: 10px;
    display: grid; place-items: center;
    background: rgba(255,255,255,.08);
    color: #fff;
    transition: var(--transition);
}
.socials a:hover { background: var(--grad); transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); text-align: center; padding: 22px 16px; font-size: .85rem; }

/* ---------- Floating buttons ---------- */
.whatsapp-float {
    position: fixed;
    right: 22px; bottom: 22px;
    width: 58px; height: 58px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: grid; place-items: center;
    font-size: 1.9rem;
    box-shadow: 0 10px 25px rgba(37,211,102,.45);
    z-index: 900;
    transition: var(--transition);
    text-decoration: none;
}
.whatsapp-float:hover { transform: scale(1.08); }
.back-to-top {
    position: fixed;
    right: 30px; bottom: 94px;
    width: 42px; height: 42px;
    border-radius: 12px;
    border: none;
    background: var(--grad);
    color: var(--on-primary);
    cursor: pointer;
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .hero-slide, .hero-content, .testimonial-slides { transition: none; }
}

.empty-state { text-align: center; color: var(--muted); padding: 40px; }

/* ---------- Mobile app (PWA) ---------- */
.install-btn[hidden] { display: none; }

.install-banner {
    position: fixed;
    left: 16px; right: 16px; top: 12px;
    max-width: 520px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 1200; /* above the sticky header */
    animation: slideDown .4s ease;
}
.install-banner[hidden] { display: none; }
.install-banner img { border-radius: 12px; flex-shrink: 0; }
.install-text { flex-grow: 1; min-width: 0; line-height: 1.35; }
.install-text strong { display: block; font-size: .95rem; }
.install-text span { font-size: .8rem; color: var(--muted); }
.install-close { border: none; background: none; color: var(--muted); font-size: 1.1rem; cursor: pointer; padding: 6px; }
@keyframes slideDown { from { transform: translateY(-120%); opacity: 0; } to { transform: none; opacity: 1; } }

.app-tabbar { display: none; }

/* Installed-app mode: native-style bottom tabs, no floating buttons */
@media (display-mode: standalone) {
    body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); user-select: none; -webkit-tap-highlight-color: transparent; }
    input, textarea, blockquote, p { user-select: text; }
    .site-header { padding-top: env(safe-area-inset-top); height: calc(var(--header-h) + env(safe-area-inset-top)); }
    .hero, .page-banner { margin-top: calc(var(--header-h) + env(safe-area-inset-top)); }
    .whatsapp-float, .install-btn, .install-banner { display: none !important; }
    .back-to-top { bottom: calc(80px + env(safe-area-inset-bottom)); right: 16px; }
    .app-tabbar {
        display: flex;
        position: fixed;
        left: 0; right: 0; bottom: 0;
        z-index: 1000;
        background: color-mix(in srgb, var(--surface) 94%, transparent);
        backdrop-filter: blur(12px);
        border-top: 1px solid var(--border);
        padding-bottom: env(safe-area-inset-bottom);
    }
    .app-tabbar a {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3px;
        padding: 10px 0 8px;
        color: var(--muted);
        text-decoration: none;
        font-size: .7rem;
        font-weight: 600;
    }
    .app-tabbar a i { font-size: 1.2rem; }
    .app-tabbar a.active { color: var(--primary); }
    .app-tabbar a:last-child i { color: #25d366; }
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .contact-grid, .checkout-grid { grid-template-columns: 1fr; }
    .summary-card { position: static; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(2) { border-right: none; }
    .stat:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
}

@media (max-width: 880px) {
    .menu-toggle { display: grid; }
    .main-nav {
        position: fixed;
        top: var(--header-h); left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
        padding: 10px 16px 20px;
        transform: translateY(-120%);
        transition: transform .35s ease;
        z-index: -1;
    }
    .main-nav.open { transform: translateY(0); }
    .main-nav ul { flex-direction: column; gap: 0; }
    .main-nav ul a { display: block; padding: 14px 6px; border-bottom: 1px solid var(--border); }
    .main-nav ul a::after { display: none; }
    .nav-cta { margin-top: 16px; }
}

@media (max-width: 640px) {
    .section { padding: 64px 0; }
    .hero { min-height: 560px; }
    .hero-arrow { display: none; }
    .hero-slide .container { padding-inline: 0; }
    .form-row, .cycle-options { grid-template-columns: 1fr; }
    .form-card, .testimonial-card { padding: 26px 20px; }
    .footer-grid { grid-template-columns: 1fr; }
    .cta-band { padding: 40px 26px; }
    .stat { padding: 22px 12px; }
    .stat strong { font-size: 1.5rem; }
    .testimonial-grid { grid-template-columns: 1fr; }
    .logo-text { font-size: 1.15rem; }
}
