/* ============================================
   Break Space — Light, Bright & Blue
   Happy. Energetic. Trustworthy. On-brand.
   ============================================ */

:root {
    /* Soft backgrounds — bright but not harsh */
    --bg: #F8FAFF;
    --bg-white: #FFFFFF;
    --bg-soft: #EFF4FF;
    --bg-warm: #F5F8FF;
    --card-bg: #FFFFFF;
    --border: #DAE3F3;
    --border-light: #E8EEFB;

    /* Brand blue palette */
    --primary: #0063EC;
    --primary-light: #3B8BFF;
    --primary-dark: #0050C0;
    --primary-soft: #E0EDFF;
    --primary-glow: rgba(0, 99, 236, 0.18);

    /* Supporting colors */
    --success: #059669;
    --success-light: #10B981;
    --success-bg: #ECFDF5;
    --danger: #DC2626;
    --danger-bg: #FEF2F2;

    /* Text — rich darks, not black */
    --text-main: #0F1D31;
    --text-secondary: #2D3E56;
    --text-dim: #5A6E85;
    --text-muted: #8B9DB5;

    /* Radii — friendly and rounded */
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 100px;

    /* Shadows — soft blue-tinted */
    --shadow-sm: 0 1px 3px rgba(0, 40, 100, 0.06), 0 1px 2px rgba(0, 40, 100, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 40, 100, 0.07), 0 2px 4px rgba(0, 40, 100, 0.04);
    --shadow-lg: 0 12px 36px rgba(0, 40, 100, 0.1), 0 4px 8px rgba(0, 40, 100, 0.04);
    --shadow-xl: 0 20px 48px rgba(0, 40, 100, 0.12);

    --ease: cubic-bezier(0.23, 1, 0.32, 1);
    --transition: 0.3s var(--ease);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
    background: var(--bg);
    color: var(--text-main);
    font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    line-height: 1.7;
    overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; display: block; }

/* ============================================
   Navigation
   ============================================ */

.nav {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    padding: 0 24px;
    background: rgba(248, 250, 255, 0.85);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    transition: box-shadow 0.4s;
}

.nav.scrolled {
    box-shadow: 0 1px 0 var(--border), var(--shadow-sm);
}

.nav-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    height: 72px;
}

.logo {
    font-weight: 800; font-size: 1.4rem; letter-spacing: -0.5px;
    color: var(--text-main);
}

.logo span { color: var(--primary); }

.nav-links {
    display: flex; align-items: center; gap: 28px; list-style: none;
}

.nav-links a {
    color: var(--text-dim); font-size: 0.95rem; font-weight: 500;
    transition: color var(--transition); position: relative;
}

.nav-links a:hover, .nav-links a.active { color: var(--text-main); }

.nav-links a.active::after {
    content: ''; position: absolute; bottom: -4px; left: 0; width: 100%;
    height: 2px; background: var(--primary); border-radius: 1px;
}

.nav-cta {
    background: var(--primary) !important; color: #fff !important;
    padding: 10px 24px; border-radius: var(--radius-full);
    font-weight: 700 !important; font-size: 0.9rem !important;
    transition: all var(--transition) !important;
    box-shadow: 0 2px 12px var(--primary-glow);
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px var(--primary-glow);
    filter: brightness(1.08);
}

.nav-utils {
    display: flex; align-items: center; gap: 12px;
    flex-shrink: 0;
}

.nav-order {
    background: var(--success); color: #fff;
    padding: 8px 16px; border-radius: var(--radius-full);
    font-weight: 700; font-size: 0.82rem;
    transition: all var(--transition); text-decoration: none;
    white-space: nowrap;
}
.nav-order:hover {
    filter: brightness(1.1); color: #fff;
    transform: translateY(-1px);
}

.nav-toggle {
    display: none; background: none; border: none;
    color: var(--text-main); cursor: pointer; padding: 8px;
}

.nav-toggle span {
    display: block; width: 24px; height: 2px; background: var(--text-main);
    margin: 6px 0; transition: all 0.3s; border-radius: 2px;
}

.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(6px, -6px); }

/* Theme Toggle */
.theme-toggle {
    background: none; border: 1.5px solid var(--border); border-radius: 50%;
    width: 38px; height: 38px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-dim); transition: all var(--transition);
    flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ============================================
   Sections & Containers
   ============================================ */

section { padding: 64px 24px; }
.container { max-width: 1100px; margin: 0 auto; }

.section-label {
    color: var(--primary); font-weight: 700; font-size: 0.85rem;
    letter-spacing: 2px; text-transform: uppercase; margin-bottom: 12px;
}

.section-title {
    font-size: 2.6rem; font-weight: 800; line-height: 1.15;
    margin-bottom: 16px; letter-spacing: -0.5px; color: var(--text-main);
}

.section-subtitle {
    color: var(--text-secondary); font-size: 1.1rem; line-height: 1.7; max-width: 580px;
}

.text-center { text-align: center; }
.text-center .section-subtitle { margin: 0 auto; }

/* ============================================
   Buttons
   ============================================ */

.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 16px 32px; border-radius: var(--radius-md);
    font-size: 1rem; font-weight: 700; cursor: pointer;
    border: none; transition: all var(--transition); text-decoration: none;
}

.btn-primary {
    background: var(--primary); color: white;
    box-shadow: 0 4px 16px var(--primary-glow);
}

.btn-primary:hover {
    filter: brightness(1.08); transform: translateY(-2px);
    box-shadow: 0 8px 28px var(--primary-glow); color: white;
}

.btn-accent {
    background: var(--primary); color: white;
    box-shadow: 0 4px 16px var(--primary-glow);
}

.btn-accent:hover {
    filter: brightness(1.08); transform: translateY(-2px);
    box-shadow: 0 8px 28px var(--primary-glow); color: white;
}

.btn-ghost {
    background: white; color: #0F1D31;
    border: 2px solid var(--primary);
    box-shadow: 0 4px 16px rgba(0, 40, 100, 0.1);
}

.btn-ghost:hover {
    background: var(--primary); color: white;
    box-shadow: 0 8px 28px var(--primary-glow);
}

.btn-white { background: white; color: #0050C0; font-weight: 700; }
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: #0050C0; }

.btn-cta-outline {
    background: transparent; color: white; font-weight: 700;
    border: 2px solid rgba(255, 255, 255, 0.6);
}
.btn-cta-outline:hover {
    background: white; color: #0050C0;
    transform: translateY(-2px); box-shadow: var(--shadow-lg);
}

.btn-sm { padding: 12px 24px; font-size: 0.9rem; }

/* ============================================
   Hero
   ============================================ */

.hero {
    min-height: 100vh; display: flex; align-items: center;
    position: relative; padding-top: 72px;
    background: linear-gradient(170deg, var(--primary-soft) 0%, var(--bg) 40%, var(--bg-white) 100%);
    overflow: hidden;
}

.hero::after {
    content: ''; position: absolute; inset: 0; z-index: 0;
    background: url('https://images.squarespace-cdn.com/content/v1/64966163f97b0d22c2c2b922/d4af98ea-04b4-4c69-ac93-2f10919683d9/young-student-friends-having-breakfast-drinking-an-2022-12-09-04-33-39-utc.jpg') center/cover no-repeat;
    opacity: 0.14;
    pointer-events: none;
}

.hero .container {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 64px; align-items: center; position: relative; z-index: 1;
}

.hero-content { max-width: 560px; }

.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--primary-soft); color: var(--primary);
    padding: 8px 18px; border-radius: var(--radius-full);
    font-size: 0.85rem; font-weight: 600; margin-bottom: 24px;
    border: 1px solid rgba(0, 99, 236, 0.15);
}

.hero h1 {
    font-size: 3.4rem; font-weight: 800; line-height: 1.1;
    letter-spacing: -1.5px; margin-bottom: 20px; color: var(--text-main);
}

.hero h1 .highlight { color: var(--primary); }

.hero p {
    color: var(--text-secondary); font-size: 1.15rem; line-height: 1.7;
    margin-bottom: 36px; max-width: 480px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-trust {
    margin-top: 28px;
    display: flex; gap: 24px; flex-wrap: wrap;
}

.trust-item {
    display: flex; align-items: center; gap: 8px;
    color: var(--text-secondary); font-size: 0.9rem; font-weight: 600;
}

.trust-icon {
    width: 22px; height: 22px; display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

/* Promise Grid — 2x2 hero cards */
.hero-visual {
    position: relative; display: flex; align-items: center; justify-content: center;
}

.hero-visual::before {
    content: ''; position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 140%; height: 140%;
    background: radial-gradient(ellipse at center, rgba(0, 99, 236, 0.07) 0%, transparent 65%);
    pointer-events: none; z-index: 0;
}

.promise-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 16px; width: 100%; position: relative; z-index: 1;
}

.promise-card-item {
    background: var(--card-bg); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 28px 20px;
    text-align: center; box-shadow: var(--shadow-md);
    transition: all 0.4s var(--ease); position: relative;
}

.promise-card-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg); border-color: var(--primary);
}

.promise-card-icon {
    width: 52px; height: 52px; display: flex; align-items: center; justify-content: center;
    background: var(--primary-soft); border-radius: var(--radius-md);
    font-size: 1.4rem; margin: 0 auto 14px; color: var(--primary);
    transition: background 0.4s var(--ease), color 0.4s var(--ease);
}

.promise-card-item:hover .promise-card-icon {
    background: var(--primary); color: white;
}

.promise-card-item h4 {
    font-size: 1rem; font-weight: 700;
    color: var(--text-main); margin-bottom: 4px;
}

.promise-card-item p {
    color: var(--text-secondary); font-size: 0.9rem;
    line-height: 1.55; margin: 0;
}

/* ============================================
   Pain Points
   ============================================ */

.pain-section { background: var(--bg-white); }

.pain-grid {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 20px; margin-top: 48px;
}

.pain-card {
    background: var(--danger-bg); border: 1px solid #FECACA;
    border-radius: var(--radius-lg); padding: 32px;
    transition: all 0.4s var(--ease);
}

.pain-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.pain-icon { font-size: 1.6rem; margin-bottom: 16px; display: block; color: var(--danger); }

.pain-card h3 {
    font-size: 1.1rem; font-weight: 700; margin-bottom: 8px;
    color: var(--danger);
}

.pain-card p { color: var(--text-secondary); font-size: 1rem; line-height: 1.6; }

/* ============================================
   Guide Section
   ============================================ */

.guide-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 48px; align-items: center; margin-top: 48px;
}

.empathy-quote {
    font-size: 1.4rem; font-weight: 600; line-height: 1.5;
    color: var(--text-secondary); margin-bottom: 20px;
    padding-left: 20px; border-left: 3px solid var(--primary);
}

.guide-text p {
    color: var(--text-secondary); font-size: 1.05rem; line-height: 1.7; margin-bottom: 16px;
}

.authority-grid {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 16px; margin-top: 24px;
}

.authority-badge {
    background: var(--bg-white); border: 1px solid var(--border);
    border-radius: var(--radius-md); padding: 24px;
    text-align: center; box-shadow: var(--shadow-sm);
}

.authority-badge .badge-number {
    font-size: 1.8rem; font-weight: 800; color: var(--primary);
    margin-bottom: 4px;
}

.authority-badge .badge-label {
    color: var(--text-secondary); font-size: 0.85rem; font-weight: 600;
}

.authority-grid-wide {
    grid-template-columns: repeat(4, 1fr);
}

.service-badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.service-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--success-bg); border: 1px solid rgba(5, 150, 105, 0.15);
    padding: 8px 16px; border-radius: var(--radius-full);
    color: var(--success); font-size: 0.85rem; font-weight: 600;
}

/* ============================================
   Service Cards
   ============================================ */

.cards-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px; margin-top: 48px;
}

.card {
    background: var(--card-bg); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 36px; text-align: center;
    transition: all 0.4s var(--ease); box-shadow: var(--shadow-sm);
}

.card:hover {
    border-color: var(--primary); transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    width: 56px; height: 56px; display: flex; align-items: center; justify-content: center;
    background: var(--primary-soft); border-radius: var(--radius-md);
    font-size: 1.6rem; margin: 0 auto 20px; color: var(--primary);
}

.card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; color: var(--text-main); }
.card p { color: var(--text-secondary); font-size: 1rem; line-height: 1.6; }

.card-link {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--primary); font-weight: 600; font-size: 0.9rem;
    margin-top: 16px; transition: gap var(--transition);
}

.card-link:hover { gap: 10px; }

/* ============================================
   Steps
   ============================================ */

.steps-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 32px; margin-top: 48px;
}

.step-item { text-align: center; padding: 40px 24px; position: relative; }

.step-number {
    display: inline-flex; align-items: center; justify-content: center;
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--primary-soft); color: var(--primary);
    font-size: 1.3rem; font-weight: 800; margin-bottom: 20px;
    border: 2px solid rgba(0, 99, 236, 0.2);
}

.step-item h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; color: var(--text-main); }
.step-item p { color: var(--text-secondary); font-size: 1rem; line-height: 1.6; }

.steps-grid .step-item:not(:last-child)::after {
    content: ''; position: absolute; top: 62px; right: -16px;
    width: 32px; height: 2px; background: var(--border);
}

/* ============================================
   Failure Section
   ============================================ */

.failure-section { background: var(--bg-white); }

.failure-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 48px; align-items: center; margin-top: 48px;
}

.failure-list { list-style: none; }

.failure-list li {
    display: flex; align-items: flex-start; gap: 14px;
    margin-bottom: 20px; font-size: 1.05rem; color: var(--text-secondary);
    line-height: 1.6;
}

.failure-list li .fail-icon {
    color: var(--danger); font-size: 1.1rem; margin-top: 3px; flex-shrink: 0;
}

.failure-visual {
    background: var(--danger-bg); border: 1px solid #FECACA;
    border-radius: var(--radius-xl); padding: 48px; text-align: center;
}

.failure-visual .big-stat {
    font-size: 4rem; font-weight: 800; color: var(--danger);
    margin-bottom: 8px;
}

.failure-visual p { color: var(--text-secondary); font-size: 1.05rem; line-height: 1.6; }

/* ============================================
   Success Section
   ============================================ */

.success-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 20px; margin-top: 48px;
}

.success-card {
    background: var(--success-bg); border: 1px solid rgba(5, 150, 105, 0.12);
    border-radius: var(--radius-lg); padding: 32px; text-align: center;
    transition: all 0.4s var(--ease);
}

.success-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.title-emphasis {
    font-style: italic; color: var(--primary);
    text-decoration: underline; text-decoration-color: var(--primary);
    text-underline-offset: 6px; text-decoration-thickness: 3px;
}

.success-icon { font-size: 2rem; margin-bottom: 16px; color: var(--success); }
.success-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; color: var(--success); }
.success-card p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.6; }

/* ============================================
   Food Section
   ============================================ */

.food-section {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 48px; align-items: center;
}

.food-image {
    border-radius: var(--radius-xl); overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.food-image img {
    width: 100%; height: auto; display: block;
    object-fit: cover;
}

.food-content .section-subtitle {
    max-width: 100%; margin-bottom: 20px;
}

.food-list {
    list-style: none; margin: 0; padding: 0;
}

.food-list li {
    display: flex; align-items: center; gap: 10px;
    font-size: 1rem; font-weight: 500; color: var(--text-secondary);
    margin-bottom: 12px;
}

.food-list li svg { flex-shrink: 0; }

@media (max-width: 768px) {
    .food-section { grid-template-columns: 1fr; }
    .food-image { max-width: 480px; margin: 0 auto; }
}

/* ============================================
   Testimonial
   ============================================ */

.testimonial-card {
    background: var(--card-bg); border: 1px solid var(--border);
    border-radius: var(--radius-xl); padding: 36px;
    max-width: 720px; margin: 0 auto; text-align: center;
    box-shadow: var(--shadow-md);
}

.testimonial-card blockquote {
    font-size: 1.25rem; line-height: 1.6; font-weight: 500;
    margin-bottom: 24px; color: var(--text-secondary); font-style: italic;
}

.testimonial-author { color: var(--text-secondary); font-size: 0.95rem; }
.testimonial-author strong { color: var(--text-main); }

/* ============================================
   CTA Banner
   ============================================ */

.cta-banner {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    border-radius: var(--radius-xl); padding: 48px 40px;
    text-align: center; position: relative; overflow: hidden;
}

.cta-banner::before {
    content: ''; position: absolute; top: -80px; right: -80px;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-banner::after {
    content: ''; position: absolute; bottom: -60px; left: -60px;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-banner h2 {
    font-size: 2.2rem; font-weight: 800; margin-bottom: 16px;
    position: relative; z-index: 1; color: white;
}

.cta-banner p {
    color: rgba(255,255,255,0.92); font-size: 1.1rem; margin-bottom: 32px;
    position: relative; z-index: 1; max-width: 500px; margin-left: auto; margin-right: auto;
}

.cta-banner .btn { position: relative; z-index: 1; }

/* ============================================
   Order Banner
   ============================================ */

.order-banner {
    background: var(--primary-soft); border: 1px solid rgba(0, 99, 236, 0.12);
    border-radius: var(--radius-xl); padding: 36px;
    display: flex; align-items: center; justify-content: space-between; gap: 32px;
}

.order-banner-content h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 8px; color: var(--text-main); }
.order-banner-content p { color: var(--text-secondary); font-size: 1rem; }

/* ============================================
   Forms
   ============================================ */

.form-group { margin-bottom: 16px; }

.form-group label {
    display: block; font-size: 0.9rem; font-weight: 600;
    margin-bottom: 8px; color: var(--text-secondary);
}

.form-input {
    width: 100%; background: var(--bg-white); border: 1px solid var(--border);
    padding: 16px 18px; border-radius: var(--radius-md);
    color: var(--text-main); font-size: 1rem; font-family: inherit;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-input:focus {
    border-color: var(--primary); outline: none;
    box-shadow: 0 0 0 3px var(--primary-glow);
}

textarea.form-input { resize: vertical; min-height: 140px; }
.form-input::placeholder { color: var(--text-muted); }

/* ============================================
   Contact Info
   ============================================ */

.contact-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 48px; margin-top: 48px;
}

.contact-info-item { display: flex; gap: 16px; margin-bottom: 28px; }

.contact-info-icon {
    width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
    background: var(--primary-soft); border-radius: var(--radius-md);
    font-size: 1.2rem; flex-shrink: 0; color: var(--primary);
}

.contact-info-text h4 { font-size: 1rem; font-weight: 600; margin-bottom: 4px; color: var(--text-main); }
.contact-info-text p { color: var(--text-secondary); font-size: 0.95rem; }
.contact-info-text a { color: var(--primary); }

/* ============================================
   Solution Detail Cards
   ============================================ */

.solution-card {
    background: var(--card-bg); border: 1px solid var(--border);
    border-radius: var(--radius-xl); padding: 48px;
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 48px; align-items: center; margin-bottom: 32px;
    transition: all 0.4s var(--ease); box-shadow: var(--shadow-sm);
}

.solution-card:hover { box-shadow: var(--shadow-lg); }

.solution-card:nth-child(even) { direction: rtl; }
.solution-card:nth-child(even) > * { direction: ltr; }

.solution-content h3 { font-size: 1.7rem; font-weight: 800; margin-bottom: 12px; color: var(--text-main); }

.solution-content p {
    color: var(--text-secondary); font-size: 1.05rem; line-height: 1.7; margin-bottom: 20px;
}

.solution-features { list-style: none; margin-bottom: 24px; }

.solution-features li {
    display: flex; align-items: center; gap: 10px;
    color: var(--text-secondary); font-size: 1rem; font-weight: 500; margin-bottom: 10px;
}

.solution-features li::before {
    content: '\2713'; color: var(--success); font-weight: 700; font-size: 0.9rem;
}

.solution-visual {
    background: var(--primary-soft); border-radius: var(--radius-lg); padding: 48px;
    display: flex; align-items: center; justify-content: center;
    min-height: 280px; font-size: 4rem;
}

/* ============================================
   Page Header
   ============================================ */

.page-header {
    padding: 160px 24px 80px; text-align: center;
    background: linear-gradient(170deg, var(--primary-soft) 0%, var(--bg) 60%);
}

.page-header h1 {
    font-size: 3rem; font-weight: 800; letter-spacing: -1px; margin-bottom: 16px;
    color: var(--text-main);
}

.page-header p {
    color: var(--text-secondary); font-size: 1.15rem; max-width: 560px; margin: 0 auto;
}

/* ============================================
   Footer — dark for contrast & grounding
   ============================================ */

.footer {
    background: #0B1527; color: #CBD5E1;
    border-top: none; padding: 64px 24px 32px;
}

.footer .logo { color: #F1F5F9; }
.footer .logo span { color: var(--primary-light); }

.footer-inner {
    max-width: 1200px; margin: 0 auto;
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
}

.footer-brand .logo { margin-bottom: 16px; }

.footer-brand p {
    color: #8B9DB5; font-size: 0.9rem; line-height: 1.6; max-width: 280px;
}

.footer-col h4 {
    font-size: 0.85rem; font-weight: 700; letter-spacing: 1px;
    text-transform: uppercase; color: #E2E8F0; margin-bottom: 16px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { color: #8B9DB5; font-size: 0.9rem; transition: color var(--transition); }
.footer-col ul a:hover { color: var(--primary-light); }

.footer-bottom {
    max-width: 1200px; margin: 48px auto 0; padding-top: 24px;
    border-top: 1px solid #1E293B;
    display: flex; align-items: center; justify-content: space-between;
    color: #64748B; font-size: 0.85rem;
}

.footer-social { display: flex; gap: 16px; }
.footer-social a { color: #8B9DB5; font-size: 1.2rem; transition: color var(--transition); }
.footer-social a:hover { color: var(--primary-light); }

/* ============================================
   Scroll Reveal
   ============================================ */

.reveal {
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-stagger > * {
    opacity: 0; transform: translateY(20px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.25s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1024px) {
    .hero .container { grid-template-columns: 1fr; gap: 48px; }
    .hero h1 { font-size: 2.8rem; }
    .section-title { font-size: 2.2rem; }
    .guide-grid { grid-template-columns: 1fr; }
    .failure-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
    .solution-card { grid-template-columns: 1fr; }
    .solution-card:nth-child(even) { direction: ltr; }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav {
        background: rgba(248, 250, 255, 0.95);
    }

    .nav-links {
        display: none; position: fixed; top: 72px; left: 0; width: 100%;
        background: rgba(248, 250, 255, 0.97); backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column; padding: 24px; gap: 0;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.open { display: flex; }
    .nav-links li { width: 100%; }
    .nav-links a {
        display: block; padding: 16px 0; font-size: 1.1rem;
        border-bottom: 1px solid var(--border-light); color: var(--text-main);
    }
    .nav-links a.active::after { display: none; }
    .nav-cta { text-align: center; margin-top: 12px; }
    .nav-toggle { display: block; }

    .hero { min-height: auto; padding-top: 120px; padding-bottom: 60px; }
    .hero h1 { font-size: 2.2rem; letter-spacing: -1px; }
    .hero p { font-size: 1.05rem; }
    .hero-trust { flex-direction: column; gap: 16px; }
    .promise-grid { gap: 12px; }
    .promise-card-item { padding: 20px 16px; }

    section { padding: 48px 20px; }
    .section-title { font-size: 1.8rem; }

    .pain-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr; gap: 16px; }
    .steps-grid .step-item::after { display: none; }
    .success-grid { grid-template-columns: 1fr; }
    .authority-grid { grid-template-columns: 1fr 1fr; }
    .authority-grid-wide { grid-template-columns: 1fr 1fr; }

    .cta-banner { padding: 40px 24px; }
    .cta-banner h2 { font-size: 1.8rem; }

    .footer-inner { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }

    .order-banner { flex-direction: column; text-align: center; }
    .page-header { padding: 120px 20px 48px; }
    .page-header h1 { font-size: 2.2rem; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { text-align: center; justify-content: center; }
}

/* ============================================
   Images & Photo Elements
   ============================================ */

.hero-image {
    width: 100%; max-width: 480px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    object-fit: cover;
}

.solution-img {
    width: 100%; height: 100%; min-height: 280px;
    object-fit: cover; border-radius: var(--radius-lg);
}

.section-photo {
    width: 100%; border-radius: var(--radius-lg);
    object-fit: cover; box-shadow: var(--shadow-md);
}

.guide-photo {
    width: 100%; border-radius: var(--radius-xl);
    object-fit: cover; box-shadow: var(--shadow-lg);
    max-height: 480px;
}

.failure-photo {
    width: 100%; border-radius: var(--radius-xl);
    object-fit: cover; box-shadow: var(--shadow-md);
    max-height: 400px;
}

.card-img {
    width: 100%; height: 180px;
    object-fit: cover; border-radius: var(--radius-md);
    margin-bottom: 20px;
}

/* Photo overlay for hero */
.hero-photo-wrapper {
    position: relative; border-radius: var(--radius-xl);
    overflow: hidden; box-shadow: var(--shadow-xl);
}

.hero-photo-wrapper img {
    width: 100%; height: 480px; object-fit: cover; display: block;
}

.hero-photo-wrapper::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 100%; height: 40%;
    background: linear-gradient(to top, rgba(11, 21, 39, 0.6), transparent);
    pointer-events: none;
}

.hero-photo-stat {
    position: absolute; bottom: 24px; left: 24px; right: 24px;
    z-index: 1; display: flex; gap: 20px;
}

.hero-photo-stat .mini-stat {
    color: white; text-align: center;
}

.hero-photo-stat .mini-stat h4 {
    font-size: 1.5rem; font-weight: 800; margin-bottom: 2px;
}

.hero-photo-stat .mini-stat p {
    font-size: 0.75rem; color: rgba(255,255,255,0.8); margin: 0;
}

/* Solution visual with image */
.solution-visual {
    background: var(--primary-soft); border-radius: var(--radius-lg);
    padding: 0; display: flex; align-items: center; justify-content: center;
    min-height: 280px; overflow: hidden;
}

.solution-visual img {
    width: 100%; height: 100%; min-height: 280px;
    object-fit: cover;
}

/* Failure visual with image */
.failure-visual-photo {
    border-radius: var(--radius-xl); overflow: hidden;
    box-shadow: var(--shadow-md); position: relative;
}

.failure-visual-photo img {
    width: 100%; height: 360px; object-fit: cover; display: block;
}

.failure-visual-photo .photo-overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 32px; background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: white; text-align: center;
}

.failure-visual-photo .big-stat {
    font-size: 3.5rem; font-weight: 800; color: #FCA5A5;
}

.failure-visual-photo .photo-overlay p {
    color: rgba(255,255,255,0.85); font-size: 0.95rem; margin-top: 4px;
}

@media (max-width: 1024px) {
    .hero-photo-wrapper img { height: 360px; }
}

@media (max-width: 768px) {
    .hero-photo-wrapper img { height: 280px; }
    .hero-photo-stat { gap: 12px; }
    .hero-photo-stat .mini-stat h4 { font-size: 1.2rem; }
    .failure-visual-photo img { height: 280px; }
    .solution-visual img { min-height: 220px; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.9rem; }
    .cards-grid { grid-template-columns: 1fr; }
    .authority-grid { grid-template-columns: 1fr; }
}

/* ============================================
   Dark Mode
   ============================================ */

[data-theme="dark"] {
    --bg: #0B1120;
    --bg-white: #111827;
    --bg-soft: #151D2E;
    --bg-warm: #131A2B;
    --card-bg: #1A2236;
    --border: #2A3650;
    --border-light: #232E44;

    --primary-soft: rgba(0, 99, 236, 0.15);
    --primary-glow: rgba(0, 99, 236, 0.25);

    --success-bg: rgba(5, 150, 105, 0.1);
    --danger-bg: rgba(220, 38, 38, 0.1);

    --text-main: #E8EDF5;
    --text-secondary: #B8C5D9;
    --text-dim: #8899B0;
    --text-muted: #5F7490;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 12px 36px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 48px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .nav {
    background: rgba(11, 17, 32, 0.9);
}

[data-theme="dark"] .nav.scrolled {
    box-shadow: 0 1px 0 var(--border), var(--shadow-sm);
}

[data-theme="dark"] .nav-links a { color: var(--text-dim); }
[data-theme="dark"] .nav-links a:hover,
[data-theme="dark"] .nav-links a.active { color: var(--text-main); }

[data-theme="dark"] .nav-toggle span { background: var(--text-main); }

[data-theme="dark"] .hero {
    background: linear-gradient(170deg, rgba(0, 99, 236, 0.08) 0%, var(--bg) 40%, var(--bg-white) 100%);
}

[data-theme="dark"] .pain-card {
    background: rgba(220, 38, 38, 0.08); border-color: rgba(220, 38, 38, 0.2);
}

[data-theme="dark"] .page-header {
    background: linear-gradient(170deg, rgba(0, 99, 236, 0.08) 0%, var(--bg) 60%);
}

[data-theme="dark"] .footer { background: #060A14; }

[data-theme="dark"] .login-page {
    background: linear-gradient(170deg, rgba(0, 99, 236, 0.08) 0%, var(--bg) 40%, var(--bg-white) 100%);
}

[data-theme="dark"] .login-card {
    background: rgba(26, 34, 54, 0.95);
}

[data-theme="dark"] .btn-google {
    background: var(--card-bg); border-color: var(--border); color: var(--text-main);
}

[data-theme="dark"] .btn-ghost {
    background: white; color: #0F1D31; border-color: var(--primary);
}

[data-theme="dark"] .btn-ghost:hover {
    background: var(--primary); color: white;
}

[data-theme="dark"] .form-input {
    background: var(--bg); border-color: var(--border); color: var(--text-main);
}

[data-theme="dark"] .testimonial-card blockquote { color: var(--text-main); }

[data-theme="dark"] .cta-banner p { color: rgba(255,255,255,0.85); }

@media (max-width: 768px) {
    [data-theme="dark"] .nav-links {
        background: rgba(11, 17, 32, 0.97);
    }
}
