/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Magenta / Fuchsia palette */
    --mag-50:  #fdf4ff;
    --mag-100: #fae8ff;
    --mag-200: #f5d0fe;
    --mag-300: #f0abfc;
    --mag-400: #e879f9;
    --mag-500: #d946ef;
    --mag-600: #c026d3;
    --mag-700: #a21caf;
    --mag-800: #86198f;
    --mag-900: #701a75;

    /* Green accents (keep for positive indicators) */
    --green-400: #34d399;
    --green-500: #10b981;

    /* Neutral grays */
    --gray-50:  #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Dark section backgrounds */
    --dark-900: #0a0114;
    --dark-800: #110220;
    --dark-700: #1a0430;
    --dark-600: #230540;

    /* Paper white — warm, slightly aged tone */
    --paper:     #f7f2e9;
    --paper-dark:#f0ead9;

    --radius:    12px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow:    0 4px 6px -1px rgba(0,0,0,0.15), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.2), 0 4px 6px -4px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.25), 0 8px 10px -6px rgba(0,0,0,0.1);
}

html {
    scroll-behavior: smooth;
    /* Fixed background — stays in place as content scrolls */
    background: url('hero-bg.jpg') center center / cover fixed no-repeat;
    background-color: var(--dark-900);
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--gray-800);
    line-height: 1.65;
    background: transparent;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Typography ===== */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: 1.2rem; }

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.25s ease;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: var(--mag-600);
    color: #fff;
    border-color: var(--mag-600);
}
.btn-primary:hover {
    background: var(--mag-700);
    border-color: var(--mag-700);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(192,38,211,0.4);
}

.btn-outline {
    background: transparent;
    color: var(--mag-600);
    border-color: var(--mag-300);
}
.btn-outline:hover {
    background: var(--mag-50);
    border-color: var(--mag-500);
}

.btn-lg    { padding: 16px 36px; font-size: 1.05rem; border-radius: 12px; }
.btn-block { width: 100%; text-align: center; }

.btn-nav {
    padding: 8px 20px;
    font-size: 0.875rem;
    background: var(--mag-600);
    color: #fff;
    border-radius: 8px;
    border-color: var(--mag-600);
}
.btn-nav:hover { background: var(--mag-700); border-color: var(--mag-700); }

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 14px 0;
    transition: all 0.3s ease;
    background: rgba(10, 1, 20, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.navbar.scrolled {
    padding: 10px 0;
    background: rgba(10, 1, 20, 0.95);
    box-shadow: 0 4px 30px rgba(0,0,0,0.4);
    border-bottom-color: rgba(192,38,211,0.2);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #fff;
}

.logo-accent { color: var(--mag-400); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}

.nav-links a {
    padding: 8px 14px;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
}
.nav-links a:hover {
    color: #fff;
    background: rgba(255,255,255,0.08);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-toggle span {
    display: block;
    width: 24px; height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== Hero — DARK ===== */
.hero {
    position: relative;
    padding: 160px 0 110px;
    overflow: hidden;
    background: linear-gradient(140deg,
        rgba(10,1,20,0.80) 0%,
        rgba(26,4,48,0.72) 50%,
        rgba(46,6,69,0.65) 100%);
    color: #fff;
}

.hero-bg-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
}
.shape-1 {
    width: 600px; height: 600px;
    background: rgba(192,38,211,0.25);
    top: -150px; right: -80px;
}
.shape-2 {
    width: 380px; height: 380px;
    background: rgba(126,34,206,0.2);
    bottom: -80px; left: -80px;
}
.shape-3 {
    width: 240px; height: 240px;
    background: rgba(232,121,249,0.15);
    top: 40%; left: 45%;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 { color: #fff; margin-bottom: 20px; }

.highlight {
    background: linear-gradient(90deg, var(--mag-400), var(--mag-300));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 36px;
    max-width: 520px;
    line-height: 1.7;
}

.hero-actions { display: flex; gap: 16px; margin-bottom: 40px; flex-wrap: wrap; }

/* Outline btn on dark background */
.hero .btn-outline {
    color: rgba(255,255,255,0.9);
    border-color: rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.06);
}
.hero .btn-outline:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.55);
}

.hero-stats { display: flex; flex-direction: column; gap: 12px; }

.stat {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}
.stat svg { color: var(--green-400); flex-shrink: 0; }

/* Hero Dashboard Card */
.hero-card {
    background: rgba(10, 1, 22, 0.55);
    border: 1px solid rgba(255,255,255,0.18);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    transition: transform 0.5s ease;
    box-shadow: 0 24px 60px rgba(0,0,0,0.55), 0 0 0 1px rgba(192,38,211,0.2);
}
.hero-card:hover { transform: perspective(1000px) rotateY(0deg) rotateX(0deg); }

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.card-dots { display: flex; gap: 6px; }
.card-dots span { width: 10px; height: 10px; border-radius: 50%; }
.card-dots span:nth-child(1) { background: #ef4444; }
.card-dots span:nth-child(2) { background: #f59e0b; }
.card-dots span:nth-child(3) { background: #10b981; }

.card-title { font-size: 0.8rem; color: rgba(255,255,255,0.4); font-weight: 500; }

.card-body {
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.card-row { display: flex; justify-content: space-between; align-items: center; }
.card-label { font-size: 0.85rem; color: rgba(255,255,255,0.45); }
.card-value { font-size: 1.1rem; font-weight: 700; color: rgba(255,255,255,0.9); }
.card-green { color: var(--green-400); }

.card-bar {
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    overflow: hidden;
}
.card-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--green-400), var(--green-500));
    border-radius: 4px;
    transition: width 1.5s ease;
}

/* ===== Testimonials Carousel ===== */
.testimonial-carousel {
    position: relative;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    transform: perspective(1000px) rotateY(-4deg) rotateX(2deg);
    transition: transform 0.5s ease;
}
.testimonial-carousel:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.tc-track {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    min-height: 280px;
}

.tc-slide {
    position: absolute;
    inset: 0;
    padding: 32px;
    background: rgba(10, 1, 22, 0.60);
    border: 1px solid rgba(255,255,255,0.15);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(192,38,211,0.2);
    display: flex;
    flex-direction: column;
    gap: 16px;
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.55s ease, transform 0.55s ease;
    pointer-events: none;
}
.tc-slide.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    position: relative;
}

.tc-stars {
    color: #f59e0b;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.tc-text {
    font-size: 0.92rem;
    color: rgba(255,255,255,0.88);
    line-height: 1.75;
    font-style: italic;
    border: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.tc-author {
    display: flex;
    align-items: center;
    gap: 12px;
    font-style: normal;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 16px;
    margin-top: auto;
}

.tc-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--mag-600), var(--dark-700));
    border: 2px solid rgba(232,121,249,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.tc-name {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: #fff;
    font-style: normal;
}

.tc-role {
    display: block;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.45);
    margin-top: 2px;
}

.tc-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
}

.tc-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(8px);
}
.tc-btn:hover {
    background: var(--mag-700);
    border-color: var(--mag-500);
    color: #fff;
}

.tc-dots {
    display: flex;
    gap: 6px;
    align-items: center;
}

.tc-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.25);
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}
.tc-dot.active {
    background: var(--mag-400);
    width: 22px;
    border-radius: 4px;
}

/* ===== Section Headers ===== */
.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 { margin-bottom: 12px; color: var(--gray-900); }
.section-header p {
    font-size: 1.05rem;
    color: var(--gray-500);
    max-width: 600px;
    margin: 0 auto;
}

/* Dark section header override */
.dark-section .section-header h2 { color: #fff; }
.dark-section .section-header p  { color: rgba(255,255,255,0.55); }

/* ===== Benefits — LIGHT ===== */
.benefits {
    padding: 100px 0;
    background: rgba(247, 242, 233, 0.90);
}

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

.benefit-card {
    padding: 32px 24px;
    border-radius: var(--radius);
    background: var(--paper);
    border: 1px solid var(--mag-100);
    transition: all 0.3s ease;
}
.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--mag-300);
    background: var(--paper-dark);
}

.benefit-icon {
    width: 56px; height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--mag-100);
    color: var(--mag-700);
    margin-bottom: 20px;
}

.benefit-card h3 { margin-bottom: 10px; color: var(--gray-900); }
.benefit-card p  { font-size: 0.9rem; color: var(--gray-500); line-height: 1.65; }

/* ===== Features — DARK ===== */
.features {
    padding: 100px 0;
    background: rgba(17, 2, 32, 0.87);
}

.features .section-header h2 { color: #fff; }
.features .section-header p  { color: rgba(255,255,255,0.5); }

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

.feature-card {
    padding: 36px 32px;
    background: rgba(255,255,255,0.04);
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.08);
    transition: all 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--mag-600);
    background: rgba(192,38,211,0.08);
    box-shadow: 0 12px 30px rgba(192,38,211,0.15);
}

.feature-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: rgba(255,255,255,0.07);
    margin-bottom: 12px;
    line-height: 1;
}
.feature-card:hover .feature-number { color: rgba(192,38,211,0.25); }

.feature-card h3 { margin-bottom: 10px; color: rgba(255,255,255,0.9); }
.feature-card p  { color: rgba(255,255,255,0.5); font-size: 0.95rem; }

/* ===== Success Stories ===== */
.stories {
    padding: 100px 0;
    background: rgba(17, 2, 32, 0.88);
}
.stories .section-header h2 { color: #fff; }
.stories .section-header p  { color: rgba(255,255,255,0.5); }

/* Featured story */
.story-featured {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.10);
    margin-bottom: 32px;
}

.story-img-wrap {
    position: relative;
    overflow: hidden;
}
.story-img-wrap img,
.story-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.story-featured:hover .story-img-wrap img { transform: scale(1.04); }
.story-card:hover .story-card-img img    { transform: scale(1.04); }

.story-result-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, var(--mag-600), var(--dark-700));
    border: 1px solid rgba(232,121,249,0.35);
    border-radius: 10px;
    padding: 10px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.story-result-badge.sm { padding: 7px 12px; }

.badge-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}
.story-result-badge.sm .badge-value { font-size: 1rem; }

.badge-label {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.65);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.story-body {
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.story-tag {
    display: inline-flex;
    padding: 4px 12px;
    background: rgba(192,38,211,0.2);
    border: 1px solid rgba(192,38,211,0.35);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--mag-300);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    width: fit-content;
}

.story-body h3,
.story-card-body h3 {
    font-size: 1.3rem;
    color: #fff;
    line-height: 1.3;
    margin: 0;
}

.story-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
    margin: 0;
}
.story-location svg { flex-shrink: 0; color: var(--mag-400); }

.story-body p,
.story-card-body p {
    font-size: 0.92rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.75;
    margin: 0;
}

/* Before / After stats */
.story-before-after {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
    padding: 16px;
    background: rgba(255,255,255,0.04);
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.07);
}
.story-before-after.compact {
    margin-top: 4px;
    padding: 12px 14px;
}

.ba-item { display: flex; flex-direction: column; align-items: center; flex: 1; }

.ba-value {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
}
.story-before-after.compact .ba-value { font-size: 1.05rem; }

.ba-before .ba-value { color: rgba(255,255,255,0.35); }
.ba-after  .ba-value { color: var(--mag-300); }

.ba-label {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.35);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 4px;
}

.ba-arrow { color: var(--mag-500); flex-shrink: 0; }

/* Story cards grid */
.stories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.story-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}
.story-card:hover {
    border-color: var(--mag-600);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(192,38,211,0.18);
}

.story-card-img {
    position: relative;
    overflow: hidden;
    height: 200px;
    flex-shrink: 0;
}

.story-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

/* Responsive stories */
@media (max-width: 1024px) {
    .stories-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .story-featured { grid-template-columns: 1fr; }
    .story-img-wrap { height: 240px; }
    .story-body { padding: 24px; }
    .stories-grid { grid-template-columns: 1fr; }
}

/* ===== Pricing — LIGHT ===== */
.pricing {
    padding: 100px 0;
    background: rgba(245, 240, 229, 0.91);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    align-items: start;
}

.price-card {
    padding: 40px 32px;
    background: var(--paper);
    border-radius: var(--radius-lg);
    border: 2px solid var(--gray-200);
    transition: all 0.3s ease;
}
.price-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--mag-300);
}

.price-card.featured {
    background: linear-gradient(140deg, var(--mag-700) 0%, var(--dark-700) 100%);
    color: #fff;
    border-color: transparent;
    transform: scale(1.03);
    box-shadow: 0 20px 50px rgba(162,28,175,0.35);
}
.price-card.featured:hover {
    transform: scale(1.03) translateY(-4px);
    box-shadow: 0 28px 60px rgba(162,28,175,0.45);
}

.price-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    background: var(--mag-100);
    color: var(--mag-800);
    margin-bottom: 20px;
}
.price-card.featured .price-badge { background: rgba(255,255,255,0.18); color: #fff; }

.price-amount { display: flex; align-items: baseline; gap: 4px; margin-bottom: 8px; }
.currency     { font-size: 1.5rem; font-weight: 700; }
.amount       { font-size: 3.5rem; font-weight: 800; line-height: 1; }
.addon-title  { font-size: 2rem !important; }
.period       { font-size: 0.9rem; color: var(--gray-500); }
.price-card.featured .period { color: rgba(255,255,255,0.55); }

.price-desc { font-size: 0.9rem; color: var(--gray-500); margin-bottom: 28px; }
.price-card.featured .price-desc { color: rgba(255,255,255,0.55); }

.price-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 32px;
}
.price-features li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.9rem; }
.price-features li svg { flex-shrink: 0; margin-top: 2px; }
.price-features .included { color: var(--gray-700); }
.price-features .excluded { color: var(--gray-400); }

.price-card.featured .price-features .included { color: rgba(255,255,255,0.9); }
.price-card.featured .price-features .included svg polyline { stroke: var(--green-400); }
.price-card.featured .price-features .excluded { color: rgba(255,255,255,0.35); }

.addon-item { color: var(--gray-600); line-height: 1.6; }
.addon-item strong { color: var(--gray-800); display: block; margin-bottom: 4px; }

.price-card.featured .btn-primary {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border-color: rgba(255,255,255,0.3);
    backdrop-filter: blur(6px);
}
.price-card.featured .btn-primary:hover {
    background: rgba(255,255,255,0.25);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

/* ===== News — LIGHT ===== */
.news {
    padding: 80px 0;
    background: rgba(247, 241, 231, 0.90);
}

.news-card {
    display: flex;
    gap: 28px;
    padding: 36px;
    background: var(--paper);
    border-radius: var(--radius-lg);
    border: 1px solid var(--mag-200);
    max-width: 800px;
    margin: 0 auto;
    align-items: flex-start;
    box-shadow: var(--shadow);
}

.news-icon {
    flex-shrink: 0;
    width: 64px; height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: var(--mag-100);
    color: var(--mag-700);
}

.news-content h3 { margin-bottom: 10px; color: var(--gray-900); }
.news-content p  { color: var(--gray-600); font-size: 0.95rem; line-height: 1.75; }

/* ===== Docs — DARK ===== */
.docs {
    padding: 80px 0;
    background: rgba(10, 1, 20, 0.87);
}

.docs .section-header h2 { color: #fff; }
.docs .section-header p  { color: rgba(255,255,255,0.5); }

.docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.doc-card {
    padding: 28px 24px;
    background: rgba(255,255,255,0.04);
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.08);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}
.doc-card:hover {
    border-color: var(--mag-600);
    transform: translateY(-3px);
    background: rgba(192,38,211,0.08);
    box-shadow: 0 8px 25px rgba(192,38,211,0.15);
}

.doc-card svg    { color: var(--mag-400); margin-bottom: 14px; }
.doc-card h4     { margin-bottom: 6px; color: rgba(255,255,255,0.9); font-size: 1rem; }
.doc-card p      { font-size: 0.85rem; color: rgba(255,255,255,0.45); }

.docs-note {
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.3);
    font-style: italic;
}

/* ===== Contact — LIGHT ===== */
.contact {
    padding: 100px 0;
    background: rgba(247, 242, 233, 0.91);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 48px;
    align-items: start;
}

.contact-info { display: flex; flex-direction: column; gap: 32px; padding-top: 16px; }

.contact-item { display: flex; gap: 16px; align-items: flex-start; }

.contact-icon {
    width: 48px; height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--mag-100);
    color: var(--mag-700);
    flex-shrink: 0;
}

.contact-item h4   { font-size: 1rem; color: var(--gray-800); margin-bottom: 4px; }
.contact-item p    { color: var(--gray-700); font-size: 0.95rem; }
.contact-note      { font-size: 0.8rem; color: var(--gray-400); }

/* Contact Form */
.contact-form {
    background: var(--paper);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--mag-200);
    box-shadow: 0 8px 30px rgba(192,38,211,0.08);
}

.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--mag-200);
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--gray-800);
    background: var(--paper-dark);
    transition: all 0.2s ease;
    outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--mag-500);
    box-shadow: 0 0 0 4px rgba(192,38,211,0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* Validation states */
.form-group input.invalid,
.form-group textarea.invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239,68,68,0.12);
}
.form-group input.valid,
.form-group textarea.valid {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16,185,129,0.10);
}
.field-error {
    display: none;
    margin-top: 5px;
    font-size: 0.78rem;
    color: #ef4444;
    font-weight: 500;
}
.field-hint {
    display: none;
    margin-top: 5px;
    font-size: 0.78rem;
    color: var(--mag-600);
    font-weight: 500;
}

.form-status {
    margin-top: 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    text-align: center;
    transition: all 0.3s ease;
}
.form-status.success {
    padding: 12px;
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}
.form-status.error {
    padding: 12px;
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* ===== Footer ===== */
.footer {
    background: rgba(10, 1, 20, 0.95);
    color: rgba(255,255,255,0.45);
    padding: 48px 0 24px;
    border-top: 1px solid rgba(192,38,211,0.15);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    margin-bottom: 24px;
}

.footer .logo-text  { color: #fff; }
.footer .logo-accent{ color: var(--mag-400); }
.footer-brand p     { margin-top: 8px; font-size: 0.85rem; }

.footer-links { display: flex; gap: 24px; }
.footer-links a {
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--mag-300); }

.footer-bottom { text-align: center; }
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.25); }

/* ===== Scroll Reveal ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}
.reveal.revealed { opacity: 1; transform: translateY(0); }

.benefits-grid .benefit-card:nth-child(2) { transition-delay: 0.1s; }
.benefits-grid .benefit-card:nth-child(3) { transition-delay: 0.2s; }
.benefits-grid .benefit-card:nth-child(4) { transition-delay: 0.3s; }
.benefits-grid .benefit-card:nth-child(5) { transition-delay: 0.4s; }

.features-grid .feature-card:nth-child(2) { transition-delay: 0.1s; }
.features-grid .feature-card:nth-child(3) { transition-delay: 0.15s; }
.features-grid .feature-card:nth-child(4) { transition-delay: 0.2s; }
.features-grid .feature-card:nth-child(5) { transition-delay: 0.25s; }
.features-grid .feature-card:nth-child(6) { transition-delay: 0.3s; }

.pricing-grid .price-card:nth-child(2) { transition-delay: 0.1s; }
.pricing-grid .price-card:nth-child(3) { transition-delay: 0.2s; }

/* ===== Responsive ===== */
@media (max-width: 992px) {
    .hero-container { grid-template-columns: 1fr; gap: 40px; }
    .hero-visual    { max-width: 400px; margin: 0 auto; }
    .hero-card      { transform: none; }

    .contact-grid { grid-template-columns: 1fr; }
    .contact-info { flex-direction: row; flex-wrap: wrap; }
    .contact-item { flex: 1; min-width: 240px; }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }

    .nav-links {
        position: fixed;
        top: 0; right: -100%;
        width: 280px; height: 100vh;
        background: var(--dark-800);
        flex-direction: column;
        padding: 80px 32px 32px;
        box-shadow: -10px 0 40px rgba(0,0,0,0.5);
        transition: right 0.3s ease;
        gap: 4px;
        border-left: 1px solid rgba(192,38,211,0.2);
    }
    .nav-links.active { right: 0; }
    .nav-links a { padding: 12px 16px; font-size: 1rem; width: 100%; }

    .hero { padding: 120px 0 60px; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }

    .benefits-grid { grid-template-columns: 1fr 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .pricing-grid  { grid-template-columns: 1fr; }

    .price-card.featured       { transform: none; }
    .price-card.featured:hover { transform: translateY(-4px); }

    .news-card    { flex-direction: column; }
    .contact-form { padding: 28px 20px; }

    .footer-content { flex-direction: column; gap: 24px; text-align: center; }
    .footer-links   { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 480px) {
    .container       { padding: 0 16px; }
    .benefits-grid   { grid-template-columns: 1fr; }
    .hero-stats      { gap: 8px; }
    .stat            { font-size: 0.82rem; }
}

/* ===================================================
   Story cards — clickable link wrappers
   =================================================== */
.story-featured-link {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: var(--radius-lg);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.story-featured-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(192,38,211,0.18);
    text-decoration: none;
}
.story-featured-link:hover .story-read-more {
    color: var(--mag-400);
    letter-spacing: 0.02em;
}

/* story-card is now an <a> tag */
a.story-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}
a.story-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(192,38,211,0.18);
    text-decoration: none;
}
a.story-card:hover .story-read-more {
    color: var(--mag-400);
}

.story-read-more {
    display: inline-block;
    margin-top: 14px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--mag-500);
    transition: color 0.2s ease, letter-spacing 0.2s ease;
}

/* ===================================================
   Story Detail Page  (story.php)
   =================================================== */
.story-page {
    min-height: 100vh;
}

/* ── Hero ── */
.sp-hero {
    position: relative;
    height: 480px;
    overflow: hidden;
    margin-top: 72px; /* navbar height */
}
@media (max-width: 768px) { .sp-hero { height: 300px; } }

.sp-hero-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}
.sp-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10,1,20,0.30) 0%,
        rgba(10,1,20,0.65) 60%,
        rgba(10,1,20,0.90) 100%
    );
    display: flex;
    align-items: flex-end;
}
.sp-hero-content {
    padding: 48px 32px;
    max-width: 860px;
}
@media (max-width: 600px) { .sp-hero-content { padding: 28px 20px; } }

.sp-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 14px;
    transition: color 0.2s;
}
.sp-back:hover { color: var(--mag-300); }

.sp-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.sp-city {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255,255,255,0.80);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.sp-desc {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.88);
    text-shadow: 0 1px 6px rgba(0,0,0,0.6);
    margin-top: 8px;
}

.sp-hero-content h1 {
    font-size: clamp(1.5rem, 4vw, 2.4rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    text-shadow: 0 2px 20px rgba(0,0,0,0.7), 0 1px 4px rgba(0,0,0,0.5);
}

/* ── Metrics bar ── */
.sp-metrics-bar {
    background: var(--dark-800);
    border-bottom: 1px solid rgba(192,38,211,0.15);
}
.sp-metrics-inner {
    display: flex;
    justify-content: center;
    gap: 0;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}
.sp-metric {
    flex: 1;
    padding: 24px 20px;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.07);
}
.sp-metric:last-child { border-right: none; }

.sp-metric-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--mag-400);
    margin-bottom: 10px;
}
.sp-metric-vals {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.sp-metric-before {
    font-size: 1.1rem;
    font-weight: 700;
    color: rgba(255,255,255,0.45);
    text-decoration: line-through;
    text-decoration-color: rgba(192,38,211,0.5);
}
.sp-metric-after {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--green-400);
}
.sp-metric-arrow {
    color: rgba(255,255,255,0.3);
    font-size: 1rem;
}

@media (max-width: 600px) {
    .sp-metrics-inner { flex-direction: column; gap: 0; }
    .sp-metric { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.07); }
    .sp-metric:last-child { border-bottom: none; }
}

/* ── Body layout ── */
.sp-body {
    background: var(--paper);
    padding: 64px 0 80px;
}
.sp-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 48px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 32px;
}
@media (max-width: 900px) {
    .sp-layout { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .sp-layout { padding: 0 20px; }
    .sp-body { padding: 40px 0 60px; }
}

/* ── Content (left column) ── */
.sp-content h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 32px 0 10px;
}
.sp-content h2:first-child { margin-top: 0; }

.sp-content p {
    font-size: 1.0rem;
    line-height: 1.75;
    color: var(--gray-700);
    margin-bottom: 18px;
}

.sp-quote {
    position: relative;
    margin: 36px 0;
    padding: 28px 28px 28px 36px;
    background: rgba(192,38,211,0.06);
    border-left: 4px solid var(--mag-500);
    border-radius: 0 var(--radius) var(--radius) 0;
}
.sp-quote::before {
    content: '\201C';
    position: absolute;
    top: -10px;
    left: 14px;
    font-size: 5rem;
    line-height: 1;
    color: var(--mag-300);
    font-family: Georgia, serif;
    pointer-events: none;
}
.sp-quote p {
    font-size: 1.1rem;
    font-style: italic;
    font-weight: 500;
    color: var(--gray-800);
    margin-bottom: 10px;
}
.sp-quote cite {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--mag-700);
    font-style: normal;
    letter-spacing: 0.03em;
}

/* ── Sidebar ── */
.sp-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sp-timeline-card,
.sp-result-card,
.sp-cta-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.sp-timeline-card h3,
.sp-timeline-card h4,
.sp-result-card h3,
.sp-result-card h4,
.sp-cta-card h3,
.sp-cta-card h4 {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--mag-700);
    margin-bottom: 16px;
}

/* Timeline */
.sp-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.sp-timeline li {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-100);
    list-style: none;
}
.sp-timeline li:last-child { border-bottom: none; padding-bottom: 0; }
.tl-date {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--mag-600);
    padding-top: 2px;
    line-height: 1.3;
}
.tl-event {
    font-size: 0.85rem;
    color: var(--gray-700);
    line-height: 1.5;
}

/* Result card */
.sp-result-value {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--mag-600);
    line-height: 1;
    margin-bottom: 4px;
}
.sp-result-label {
    font-size: 0.85rem;
    color: var(--gray-600);
    line-height: 1.4;
}

/* CTA card */
.sp-cta-card {
    background: linear-gradient(135deg, var(--dark-800) 0%, var(--dark-700) 100%);
    border-color: rgba(192,38,211,0.3);
    text-align: center;
}
.sp-cta-card h3 { color: var(--mag-300); }
.sp-cta-card p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.75);
    margin-bottom: 18px;
    line-height: 1.5;
}
.sp-cta-card .btn { width: 100%; justify-content: center; }

/* ── Related stories ── */
.sp-related {
    background: var(--paper-dark);
    padding: 64px 0;
    border-top: 1px solid var(--gray-200);
}
.sp-related .container > h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 32px;
}
.sp-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
@media (max-width: 768px) {
    .sp-related-grid { grid-template-columns: 1fr; }
}

.sp-related-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.sp-related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 36px rgba(192,38,211,0.16);
}
.sp-related-img {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}
.sp-related-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.sp-related-card:hover .sp-related-img img {
    transform: scale(1.05);
}
.sp-related-img .story-tag {
    position: absolute;
    top: 12px;
    left: 12px;
}
.sp-related-body {
    padding: 18px 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.sp-related-city {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--mag-600);
    margin-bottom: 6px;
}
.sp-related-body h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.4;
    flex: 1;
}
.sp-related-body .story-read-more {
    margin-top: 10px;
    font-size: 0.82rem;
}
