/* ════════════════════════════════════════════════════════════
   DIGITAL VOTING SYSTEM — Landing Page Styles
   JRMSU Tampilisan Campus
   Clean SaaS Design — Light Theme
   ════════════════════════════════════════════════════════════ */

/* ── Design Tokens ── */
:root {
    /* SaaS Color Palette */
    --primary-blue: #1A237E;
    --primary-red:  #D32F2F;
    --primary-blue-light: #3949AB;
    --primary-red-light: #EF5350;
    
    --text-dark:    #1a202c;
    --text-body:    #4B5563;
    --text-muted:   #6B7280;
    --text-light:   #9CA3AF;
    
    --bg-main:      #F8F9FA;
    --bg-light:     #F1F3F5;
    --bg-section:   #FAFBFC;
    --card-surface: #FFFFFF;
    --white:        #FFFFFF;
    --footer-dark:  #1F2937;
    
    /* Borders */
    --border-light: #E5E7EB;
    --border-card:  #EAECEF;
    
    /* Shadows - Soft SaaS style */
    --radius-sm:  10px;
    --radius-md:  14px;
    --radius-lg:  18px;
    --radius-xl:  24px;
    
    --shadow-xs:  0 1px 2px rgba(0,0,0,0.04);
    --shadow-sm:  0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md:  0 4px 6px rgba(0,0,0,0.04), 0 2px 4px rgba(0,0,0,0.02);
    --shadow-lg:  0 10px 25px rgba(0,0,0,0.06), 0 4px 10px rgba(0,0,0,0.03);
    --shadow-xl:  0 20px 40px rgba(0,0,0,0.08);
    --shadow-card: 0 2px 8px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
    --shadow-card-hover: 0 8px 30px rgba(0,0,0,0.1);
    
    /* Fluid spacing */
    --space-section: clamp(5rem, 10vw, 7rem);
    --space-inner-x: clamp(1.5rem, 5vw, 3.5rem);
    --header-height: 88px;
    
    /* Safe area */
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}


/* ── Base Reset ── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--white);
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

img { max-width: 100%; height: auto; display: block; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }


/* ── Full-bleed sections ── */
section,
footer,
header {
    width: 100%;
    display: block;
}

/* ── Content constrain ── */
.inner {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: var(--space-inner-x);
    padding-right: var(--space-inner-x);
}


/* ════════════════════════════════════════════
   FOCUS & ACCESSIBILITY
════════════════════════════════════════════ */
:focus-visible {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}


/* ════════════════════════════════════════════
   HEADER — Clean White
════════════════════════════════════════════ */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: var(--white);
    border-bottom: 1px solid var(--border-light);
    z-index: 1000;
    transition: all 0.3s ease;
}

header.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-inner-x);
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: clamp(12px, 2.5vw, 16px);
    flex-shrink: 0;
    min-width: 0;
}

.logo-img {
    height: clamp(50px, 8vw, 62px);
    width: auto;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.logo:hover .logo-img {
    transform: scale(1.02);
}

.logo-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.logo-text .brand {
    font-size: clamp(1.15rem, 2.2vw, 1.35rem);
    font-weight: 700;
    color: var(--primary-blue);
    line-height: 1.2;
    white-space: nowrap;
}

.logo-text .campus {
    font-size: clamp(0.75rem, 1.4vw, 0.875rem);
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
}

/* Desktop Nav */
.nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    padding: 0.6rem 1.15rem;
    color: var(--text-body);
    font-weight: 500;
    font-size: 1rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    position: relative;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--primary-blue);
}

.nav-btn {
    margin-left: 0.75rem;
    padding: 0.7rem 1.5rem;
    background: var(--primary-red);
    color: var(--white) !important;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(211,47,47,0.25);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    min-height: 48px;
}

.nav-btn:hover {
    background: var(--primary-red-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(211,47,47,0.3);
}

/* Mobile toggle */
.mobile-toggle {
    display: none;
    background: var(--primary-red);
    border: none;
    color: white;
    cursor: pointer;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
    z-index: 1001;
}

.mobile-toggle:hover {
    background: var(--primary-red-light);
}

.mobile-toggle:active {
    transform: scale(0.95);
}


/* ════════════════════════════════════════════
   HERO — Light Background
════════════════════════════════════════════ */
.hero {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--white);
    position: relative;
    display: flex;
    align-items: center;
    padding: calc(var(--header-height) + 2rem) 0 clamp(3rem, 6vw, 4rem);
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-inner-x);
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    animation: fadeInUp 0.6s ease both;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero h1 {
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 700;
    color: var(--primary-blue);
    line-height: 1.25;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.hero h1 span {
    display: block;
    color: var(--primary-red);
    font-weight: 700;
    white-space: nowrap;
}

.hero-description {
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    color: var(--text-body);
    margin-bottom: 2.25rem;
    line-height: 1.75;
    max-width: 520px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Hero Buttons */
.btn {
    padding: clamp(0.9rem, 2vw, 1rem) clamp(1.75rem, 3vw, 2rem);
    border-radius: var(--radius-md);
    font-size: clamp(0.95rem, 1.8vw, 1.05rem);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    font-family: inherit;
    min-height: 52px;
}

.btn-white {
    background: var(--primary-red);
    color: var(--white);
    box-shadow: 0 2px 10px rgba(211,47,47,0.25);
}

.btn-white:hover {
    background: var(--primary-red-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(211,47,47,0.3);
}

.btn-white:active { transform: translateY(0); }

.btn-outline {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--border-light);
}

.btn-outline:hover {
    border-color: var(--primary-blue);
    background: rgba(26,35,126,0.04);
}

/* Hero image */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInUp 0.6s ease 0.1s both;
}

.hero-image img {
    max-width: 100%;
    width: clamp(300px, 42vw, 540px);
    height: auto;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}

/* Scroll indicator - FIXED for mobile */
.scroll-indicator {
    position: absolute;
    bottom: clamp(1.5rem, 3vw, 2.5rem);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    animation: bounce 2.5s infinite;
    z-index: 10;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40%  { transform: translateX(-50%) translateY(-6px); }
    60%  { transform: translateX(-50%) translateY(-3px); }
}


/* ════════════════════════════════════════════
   SECTION SHARED
════════════════════════════════════════════ */
.section-header {
    text-align: center;
    margin-bottom: clamp(3rem, 6vw, 4rem);
}

.section-header h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-blue);
    letter-spacing: -0.01em;
}

.section-header p {
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}


/* ════════════════════════════════════════════
   FEATURES — Clean White Cards
════════════════════════════════════════════ */
.features {
    background: var(--white);
    padding: var(--space-section) 0;
    border-top: 1px solid var(--border-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(1.5rem, 3vw, 2rem);
}

.feature-card {
    background: var(--card-surface);
    border-radius: var(--radius-xl);
    padding: clamp(2rem, 4vw, 2.75rem);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-card);
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card-hover);
    border-color: transparent;
}

.feature-icon {
    width: clamp(60px, 8vw, 72px);
    height: clamp(60px, 8vw, 72px);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: clamp(1.25rem, 2.5vw, 1.75rem);
    font-size: clamp(1.4rem, 2.8vw, 1.65rem);
    color: white;
    flex-shrink: 0;
}

/* Alternate icon colors */
.feature-card:nth-child(1) .feature-icon {
    background: var(--primary-blue);
}

.feature-card:nth-child(2) .feature-icon {
    background: var(--primary-red);
}

.feature-card h3 {
    font-size: clamp(1.25rem, 2.2vw, 1.45rem);
    font-weight: 600;
    margin-bottom: 0.65rem;
    color: var(--text-dark);
}

.feature-card > p {
    color: var(--text-muted);
    font-size: clamp(0.95rem, 1.7vw, 1.05rem);
    line-height: 1.65;
}

.feature-list {
    margin-top: 1.5rem;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 0.85rem;
    font-size: clamp(0.925rem, 1.6vw, 1rem);
    color: var(--text-body);
    line-height: 1.55;
}

.feature-list li i {
    color: #10b981;
    margin-top: 4px;
    font-size: 0.85rem;
    flex-shrink: 0;
}


/* ════════════════════════════════════════════
   HOW IT WORKS — Clean Timeline Style
════════════════════════════════════════════ */
.how-it-works {
    background: var(--bg-main);
    padding: var(--space-section) 0;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(0.5rem, 1vw, 1rem);
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
}

/* Connector line - gradient from blue to red */
.steps-grid::before {
    content: '';
    position: absolute;
    top: clamp(38px, 6vw, 48px);
    left: 12.5%;
    right: 12.5%;
    height: 4px;
    background: linear-gradient(90deg, 
        var(--primary-blue) 0%, 
        var(--primary-blue) 25%,
        var(--primary-red) 75%,
        var(--primary-red) 100%
    );
    z-index: 0;
    border-radius: 2px;
}

.step-card {
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 0 clamp(0.25rem, 1vw, 0.75rem);
}

.step-number {
    width: clamp(72px, 10vw, 96px);
    height: clamp(72px, 10vw, 96px);
    border-radius: 50%;
    color: white;
    font-size: clamp(1.75rem, 3.2vw, 2.25rem);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto clamp(1.75rem, 3.5vw, 2.25rem);
    transition: all 0.3s ease;
    border: 5px solid var(--bg-main);
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

/* Gradient circles - blue to red progression */
.step-card:nth-child(1) .step-number {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
}

.step-card:nth-child(2) .step-number {
    background: linear-gradient(135deg, var(--primary-blue-light) 0%, #7B1FA2 100%);
}

.step-card:nth-child(3) .step-number {
    background: linear-gradient(135deg, #7B1FA2 0%, var(--primary-red) 100%);
}

.step-card:nth-child(4) .step-number {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-light) 100%);
}

.step-card:hover .step-number {
    transform: scale(1.08);
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.step-card h3 {
    font-size: clamp(1.05rem, 1.9vw, 1.25rem);
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.step-card p {
    font-size: clamp(0.9rem, 1.6vw, 1rem);
    color: var(--text-muted);
    line-height: 1.65;
    max-width: 220px;
    margin: 0 auto;
}


/* ════════════════════════════════════════════
   STATS — Light Background
════════════════════════════════════════════ */
.stats {
    background: var(--white);
    padding: clamp(3.5rem, 7vw, 5rem) 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(1rem, 2.5vw, 2rem);
}

.stat-item {
    text-align: center;
    padding: clamp(1rem, 2.5vw, 1.75rem);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
}

.stat-icon {
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    color: var(--primary-blue);
    opacity: 0.8;
}

.stat-content {
    text-align: left;
}

.stat-number {
    font-size: clamp(2rem, 4.5vw, 2.75rem);
    font-weight: 800;
    color: var(--primary-blue);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.stat-label {
    font-size: clamp(0.85rem, 1.5vw, 1rem);
    color: var(--text-muted);
    font-weight: 500;
}


/* ════════════════════════════════════════════
   SECURITY — Clean Layout
════════════════════════════════════════════ */
.security {
    background: var(--bg-main);
    padding: var(--space-section) 0;
}

.security-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(3rem, 6vw, 5rem);
    align-items: center;
}

.security-text h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.25rem);
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--primary-blue);
    letter-spacing: -0.01em;
}

.security-text > p {
    color: var(--text-body);
    margin-bottom: 2.25rem;
    line-height: 1.75;
    font-size: clamp(1rem, 1.8vw, 1.1rem);
}

.security-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1.25rem, 2.5vw, 1.5rem);
}

.security-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.security-item-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-blue);
    color: white;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.security-item-text h4 {
    font-size: clamp(0.95rem, 1.6vw, 1.05rem);
    font-weight: 600;
    margin-bottom: 3px;
    color: var(--text-dark);
}

.security-item-text p {
    font-size: clamp(0.85rem, 1.4vw, 0.95rem);
    color: var(--text-muted);
    margin: 0;
}

.security-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.security-badges {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1rem, 2vw, 1.25rem);
    width: 100%;
    max-width: 360px;
}

.security-badge {
    background: var(--card-surface);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 3vw, 1.85rem) clamp(1rem, 2vw, 1.25rem);
    text-align: center;
    transition: all 0.25s ease;
    box-shadow: var(--shadow-sm);
}

.security-badge:hover {
    border-color: var(--primary-blue);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.security-badge i {
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    display: block;
}

.security-badge span {
    display: block;
    font-size: clamp(0.9rem, 1.6vw, 1rem);
    font-weight: 600;
    color: var(--text-dark);
}


/* ════════════════════════════════════════════
   FOOTER — Clean Dark
════════════════════════════════════════════ */
footer {
    background: var(--footer-dark);
    padding: clamp(1.75rem, 3.5vw, 2.5rem) var(--space-inner-x);
    text-align: center;
    width: 100%;
}

footer p {
    color: #9CA3AF;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    margin-bottom: 0.35rem;
}

footer p:last-child {
    color: #D1D5DB;
    font-weight: 500;
    margin-bottom: 0;
}


/* ════════════════════════════════════════════
   SCROLL-TRIGGERED REVEAL
════════════════════════════════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ════════════════════════════════════════════
   MOBILE NAV OVERLAY
════════════════════════════════════════════ */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-overlay.active {
    display: flex;
    opacity: 1;
}

.nav-overlay .nav-link {
    font-size: clamp(1.05rem, 2.5vw, 1.15rem);
    padding: 0.75rem 1.75rem;
    min-height: 48px;
    display: flex;
    align-items: center;
    color: var(--text-dark);
}

.nav-overlay .nav-link:hover {
    color: var(--primary-blue);
}

.nav-overlay .nav-btn {
    font-size: 1rem;
    padding: 0.9rem 2rem;
    min-height: 50px;
    margin-left: 0;
    margin-top: 0.5rem;
}


/* ════════════════════════════════════════════
   RESPONSIVE — Large Tablets (≤1199px)
════════════════════════════════════════════ */
@media (max-width: 1199px) {
    :root { --header-height: 80px; }
    .logo-img { height: clamp(44px, 7vw, 54px); }
}


/* ════════════════════════════════════════════
   RESPONSIVE — Tablets (≤1023px)
════════════════════════════════════════════ */
@media (max-width: 1023px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero h1 {
        white-space: normal;
    }
    
    .hero h1 span {
        white-space: normal;
    }

    .hero-content { order: 2; }
    .hero-image   { order: 1; }
    .hero-image img { width: clamp(220px, 45vw, 360px); }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons { justify-content: center; }

    .features-grid {
        grid-template-columns: 1fr;
        max-width: 550px;
        margin: 0 auto;
    }

    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem 1.5rem;
        max-width: 550px;
    }

    .steps-grid::before { 
        display: none; 
    }

    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    
    .stat-item {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .stat-content {
        text-align: center;
    }

    .security-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .security-visual { order: -1; }

    .security-features {
        max-width: 450px;
        margin: 0 auto;
    }

    .security-item { text-align: left; }
}


/* ════════════════════════════════════════════
   RESPONSIVE — Mobile Nav trigger (≤991px)
════════════════════════════════════════════ */
@media (max-width: 991px) {
    .nav-links { display: none; }
    .mobile-toggle { display: flex; }

    .mobile-toggle.active {
        position: fixed;
        top: calc(1rem + var(--safe-top));
        right: var(--space-inner-x);
        z-index: 1001;
    }
}


/* ════════════════════════════════════════════
   RESPONSIVE — Small Tablets / Large Phones (≤767px)
════════════════════════════════════════════ */
@media (max-width: 767px) {
    :root { --header-height: 70px; }

    .hero { 
        min-height: auto; 
        padding-top: calc(var(--header-height) + 1.5rem);
        padding-bottom: 3.5rem; 
    }
    
    .hero h1 { 
        font-size: clamp(1.5rem, 5.5vw, 2rem); 
        white-space: normal;
    }
    
    .hero h1 span {
        white-space: normal;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin: 0 auto;
        gap: 2.75rem;
    }
    
    .step-card p {
        max-width: 100%;
    }

    .security-features { grid-template-columns: 1fr; }

    .security-badges {
        max-width: 280px;
        margin: 0 auto;
    }
    
    .stat-item {
        padding: 1rem;
    }

    /* Hide scroll indicator on mobile to avoid button conflict */
    .scroll-indicator {
        display: none;
    }
}


/* ════════════════════════════════════════════
   RESPONSIVE — Phones (≤480px)
════════════════════════════════════════════ */
@media (max-width: 480px) {
    .hero {
        padding-bottom: 3rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn { width: 100%; justify-content: center; }

    .stats-grid { gap: 0.75rem; }
    .stat-number { font-size: clamp(1.65rem, 6vw, 2rem); }

    .security-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .security-badges {
        max-width: 240px;
    }
}


/* ════════════════════════════════════════════
   RESPONSIVE — Extra small (≤360px)
════════════════════════════════════════════ */
@media (max-width: 360px) {
    .logo-text { display: none; }

    .hero h1 { 
        font-size: 1.35rem; 
        white-space: normal;
    }

    .security-badges {
        grid-template-columns: 1fr;
        max-width: 160px;
    }

    .step-number {
        width: 56px;
        height: 56px;
        font-size: 1.35rem;
    }
}


/* ════════════════════════════════════════════
   RESPONSIVE — Landscape phones
════════════════════════════════════════════ */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding-top: calc(var(--header-height) + 1rem);
        padding-bottom: 1.5rem;
    }

    .scroll-indicator { display: none; }

    .hero-image img { width: clamp(150px, 25vw, 220px); }
}