/* ================================================
   Amar Partner - Premium Design System
   Modern, Warm, Distinctive
   ================================================ */

/* CSS Variables */
:root {
    /* Primary Colors - Warm Coral Red */
    --primary: #FF4757;
    --primary-dark: #E8384F;
    --primary-light: #FF6B7A;
    --primary-glow: rgba(255, 71, 87, 0.2);
    
    /* Accent Colors */
    --accent-gold: #FFB347;
    --accent-purple: #A29BFE;
    --accent-teal: #00D9C0;
    
    /* Neutrals */
    --white: #FFFFFF;
    --off-white: #FAFBFC;
    --gray-50: #F8F9FA;
    --gray-100: #F1F3F5;
    --gray-200: #E9ECEF;
    --gray-300: #DEE2E6;
    --gray-400: #CED4DA;
    --gray-500: #ADB5BD;
    --gray-600: #868E96;
    --gray-700: #495057;
    --gray-800: #343A40;
    --gray-900: #212529;
    --black: #0D0D0D;
    
    /* Typography */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 8px 32px var(--primary-glow);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
    --transition-bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-700);
    background: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Selection */
::selection {
    background: var(--primary);
    color: var(--white);
}

/* Grain Overlay */
.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Floating Orbs */
.floating-orbs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--primary-light), var(--accent-purple));
    top: -10%;
    right: -5%;
    animation-delay: 0s;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--accent-teal), var(--primary-light));
    bottom: 20%;
    left: -5%;
    animation-delay: -7s;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, var(--accent-gold), var(--primary));
    top: 50%;
    right: 20%;
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -40px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(40px, 30px) scale(1.02); }
}

/* Container */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

/* ================================================
   Typography
   ================================================ */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--gray-900);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }

em {
    font-style: normal;
    font-family: var(--font-display);
    font-weight: 500;
    color: var(--primary);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ================================================
   Buttons
   ================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.875rem 1.75rem;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 16px var(--primary-glow);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--primary-glow);
}

.btn-outline {
    background: transparent;
    color: var(--gray-800);
    border: 2px solid var(--gray-200);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(255, 71, 87, 0.05);
}

.btn-white {
    background: var(--white);
    color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-large {
    padding: 1rem 2.25rem;
    font-size: 1rem;
}

.btn-large svg {
    width: 22px;
    height: 22px;
}

/* ================================================
   Header
   ================================================ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: all var(--transition-base);
}

.header.scrolled {
    border-bottom-color: var(--gray-100);
    box-shadow: var(--shadow-sm);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    transition: transform var(--transition-fast);
}

.logo:hover {
    transform: scale(1.02);
}

.logo-mark {
    width: 44px;
    height: 44px;
    color: var(--gray-900);
}

.logo-mark svg {
    width: 100%;
    height: 100%;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: -0.5px;
}

.logo-tagline {
    font-size: 0.75rem;
    color: var(--gray-500);
    font-weight: 500;
    margin-top: -2px;
}

/* Nav Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-2xl);
    list-style: none;
}

.nav-link {
    position: relative;
    font-weight: 500;
    color: var(--gray-600);
    padding: var(--space-sm) 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    border-radius: var(--radius-full);
    transition: width var(--transition-base);
}

.nav-link:hover {
    color: var(--gray-900);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    padding: 0.75rem 1.5rem;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gray-800);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

/* ================================================
   Hero Section
   ================================================ */

.hero {
    position: relative;
    min-height: 100vh;
    padding: 120px 0 80px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--off-white) 0%, var(--white) 50%, rgba(255, 71, 87, 0.03) 100%);
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.4;
    background-image: radial-gradient(circle at 1px 1px, var(--gray-200) 1px, transparent 0);
    background-size: 40px 40px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

/* Hero Text */
.hero-text {
    animation: fadeInUp 0.8s ease;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.5rem 1rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: var(--space-xl);
    box-shadow: var(--shadow-sm);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-teal);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.hero-title {
    margin-bottom: var(--space-lg);
}

.title-line {
    display: block;
}

.title-line.accent {
    font-family: var(--font-display);
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--gray-600);
    max-width: 480px;
    margin-bottom: var(--space-2xl);
    line-height: 1.7;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    padding: var(--space-xl);
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-2xl);
    box-shadow: var(--shadow-sm);
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: -0.5px;
}

.stat-label {
    font-size: 0.8125rem;
    color: var(--gray-500);
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--gray-200);
}

/* Hero Actions */
.hero-actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    animation: fadeInUp 0.8s ease 0.2s both;
}

/* Phone Mockup */
.phone-mockup {
    position: relative;
    z-index: 1;
}

.phone-frame {
    width: 300px;
    height: 620px;
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border-radius: 44px;
    padding: 12px;
    box-shadow: 
        0 50px 100px rgba(0, 0, 0, 0.25),
        0 20px 40px rgba(0, 0, 0, 0.2),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    transform: perspective(1000px) rotateY(-8deg) rotateX(2deg);
    transition: transform var(--transition-slow);
}

.phone-frame:hover {
    transform: perspective(1000px) rotateY(-2deg) rotateX(1deg);
}

.phone-notch {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 28px;
    background: #1a1a1a;
    border-radius: 0 0 16px 16px;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #fafbfc 0%, #ffffff 100%);
    border-radius: 34px;
    overflow: hidden;
}

/* Call Interface */
.call-interface {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 50px 24px 24px;
}

.call-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
}

.call-status {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-teal);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-teal);
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

.call-timer {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-600);
    font-variant-numeric: tabular-nums;
}

/* Caller Info */
.caller-info {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.caller-avatar {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto var(--space-md);
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.caller-avatar svg {
    width: 48px;
    height: 48px;
    z-index: 1;
}

.avatar-pulse,
.avatar-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
}

.avatar-pulse {
    background: var(--primary);
    animation: avatarPulse 2s ease-out infinite;
}

.avatar-ring {
    border: 2px solid var(--primary);
    animation: avatarPulse 2s ease-out infinite 1s;
}

@keyframes avatarPulse {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.5); opacity: 0; }
}

.caller-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-xs);
}

.caller-location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    font-size: 0.8125rem;
    color: var(--gray-500);
}

/* Voice Visualizer */
.voice-visualizer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    height: 50px;
    margin: var(--space-lg) 0;
}

.voice-bar {
    width: 4px;
    background: var(--primary);
    border-radius: var(--radius-full);
    animation: voiceWave 1s ease-in-out infinite;
}

.voice-bar:nth-child(1) { height: 20px; animation-delay: 0s; }
.voice-bar:nth-child(2) { height: 30px; animation-delay: 0.1s; }
.voice-bar:nth-child(3) { height: 25px; animation-delay: 0.2s; }
.voice-bar:nth-child(4) { height: 35px; animation-delay: 0.3s; }
.voice-bar:nth-child(5) { height: 28px; animation-delay: 0.4s; }
.voice-bar:nth-child(6) { height: 32px; animation-delay: 0.5s; }
.voice-bar:nth-child(7) { height: 22px; animation-delay: 0.6s; }

@keyframes voiceWave {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(1.8); }
}

/* Topic Card */
.topic-card {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin-top: auto;
    margin-bottom: var(--space-lg);
    box-shadow: var(--shadow-xs);
}

.topic-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-xs);
}

.topic-text {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--gray-800);
}

/* Call Controls */
.call-controls {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
}

.control-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-base);
    background: var(--gray-100);
    color: var(--gray-700);
}

.control-btn:hover {
    transform: scale(1.08);
    background: var(--gray-200);
}

.control-btn svg {
    width: 24px;
    height: 24px;
}

.control-btn.end-call {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 16px var(--primary-glow);
}

.control-btn.end-call:hover {
    background: var(--primary-dark);
    transform: scale(1.08) rotate(135deg);
}

/* Floating Cards */
.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    animation: floatCard 6s ease-in-out infinite;
}

.card-1 {
    top: 15%;
    left: -10%;
    animation-delay: 0s;
}

.card-2 {
    top: 50%;
    right: -5%;
    animation-delay: -2s;
}

.card-3 {
    bottom: 10%;
    left: 5%;
    animation-delay: -4s;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.card-icon {
    font-size: 1.5rem;
}

.card-text {
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--gray-900);
}

.card-desc {
    font-size: 0.75rem;
    color: var(--gray-500);
}

/* Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: var(--space-2xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: var(--gray-500);
    font-size: 0.8125rem;
    animation: fadeInUp 1s ease 1s both;
}

.scroll-arrow {
    animation: bounce 2s ease-in-out infinite;
}

.scroll-arrow svg {
    width: 20px;
    height: 20px;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================================================
   Section Header
   ================================================ */

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--space-4xl);
}

.section-label {
    display: inline-block;
    padding: 0.375rem 1rem;
    background: rgba(255, 71, 87, 0.1);
    color: var(--primary);
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-lg);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-title {
    margin-bottom: var(--space-md);
}

.section-desc {
    font-size: 1.0625rem;
    color: var(--gray-600);
}

/* ================================================
   Features Section
   ================================================ */

.features {
    padding: var(--space-4xl) 0;
    background: var(--off-white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.feature-card {
    position: relative;
    padding: var(--space-2xl);
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.1), rgba(255, 71, 87, 0.05));
    border-radius: var(--radius-md);
    color: var(--primary);
    margin-bottom: var(--space-lg);
}

.feature-icon svg {
    width: 28px;
    height: 28px;
}

.feature-card h3 {
    margin-bottom: var(--space-sm);
}

.feature-card p {
    color: var(--gray-600);
    line-height: 1.7;
}

/* Featured Card */
.feature-card.featured {
    grid-column: span 1;
    grid-row: span 2;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border: none;
}

.feature-card.featured::before {
    display: none;
}

.feature-card.featured .feature-icon {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.feature-card.featured h3,
.feature-card.featured p {
    color: var(--white);
}

.feature-card.featured p {
    opacity: 0.9;
}

.feature-badge {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

/* Leaderboard Preview */
.feature-preview {
    margin-top: var(--space-xl);
}

.leaderboard-preview {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.leader-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
}

.leader-item .rank {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.8125rem;
    font-weight: 700;
}

.leader-item.gold .rank {
    background: var(--accent-gold);
    color: var(--gray-900);
}

.leader-item.silver .rank {
    background: #C0C0C0;
    color: var(--gray-900);
}

.leader-item.bronze .rank {
    background: #CD7F32;
    color: var(--white);
}

.leader-item .name {
    flex: 1;
    font-weight: 600;
}

.leader-item .score {
    font-size: 0.8125rem;
    opacity: 0.8;
}

/* ================================================
   Levels Section
   ================================================ */

.levels {
    padding: var(--space-4xl) 0;
    background: var(--white);
}

.levels-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.level-card {
    position: relative;
    padding: var(--space-2xl);
    background: var(--white);
    border: 2px solid var(--gray-100);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
    overflow: hidden;
}

.level-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.level-number {
    position: absolute;
    top: var(--space-xl);
    right: var(--space-xl);
    font-size: 4rem;
    font-weight: 900;
    opacity: 0.05;
    line-height: 1;
}

.level-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.1), rgba(255, 71, 87, 0.05));
    border-radius: 50%;
    color: var(--primary);
    margin-bottom: var(--space-xl);
}

.level-icon svg {
    width: 32px;
    height: 32px;
}

.level-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
}

.level-card > p {
    color: var(--gray-600);
    margin-bottom: var(--space-xl);
    line-height: 1.7;
}

.level-features {
    list-style: none;
    margin-bottom: var(--space-xl);
}

.level-features li {
    position: relative;
    padding-left: var(--space-xl);
    margin-bottom: var(--space-sm);
    color: var(--gray-600);
    font-size: 0.9375rem;
}

.level-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-teal);
    font-weight: 700;
}

.level-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 600;
    color: var(--primary);
    transition: gap var(--transition-fast);
}

.level-cta:hover {
    gap: var(--space-md);
}

.level-cta svg {
    width: 18px;
    height: 18px;
}

/* Level Card Variants */
.level-card.beginner:hover {
    border-color: var(--accent-teal);
}

.level-card.intermediate:hover {
    border-color: var(--accent-gold);
}

.level-card.advanced:hover {
    border-color: var(--primary);
}

/* ================================================
   Stories Section
   ================================================ */

.stories {
    padding: var(--space-4xl) 0;
    background: var(--off-white);
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.story-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.story-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.story-media {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-placeholder {
    width: 80px;
    height: 80px;
    background: var(--gray-200);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
}

.story-placeholder svg {
    width: 40px;
    height: 40px;
}

.play-btn {
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--primary);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: 0 4px 20px var(--primary-glow);
}

.play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px var(--primary-glow);
}

.play-btn svg {
    width: 24px;
    height: 24px;
    margin-left: 3px;
}

.story-content {
    padding: var(--space-xl);
}

.story-content h4 {
    font-size: 1.125rem;
    margin-bottom: var(--space-sm);
}

.story-meta {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
    font-size: 0.8125rem;
    color: var(--gray-500);
}

.story-progress {
    color: var(--accent-teal);
    font-weight: 600;
}

.story-content p {
    color: var(--gray-600);
    font-style: italic;
    line-height: 1.7;
}

/* ================================================
   CTA Section
   ================================================ */

.cta-section {
    position: relative;
    padding: var(--space-4xl) 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    overflow: hidden;
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    color: var(--white);
    margin-bottom: var(--space-lg);
}

.cta-content > p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    margin-bottom: var(--space-2xl);
}

.cta-actions {
    margin-bottom: var(--space-lg);
}

.cta-note {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.cta-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.cta-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.shape-1 {
    width: 400px;
    height: 400px;
    top: -200px;
    left: -100px;
}

.shape-2 {
    width: 300px;
    height: 300px;
    bottom: -150px;
    right: -50px;
}

.shape-3 {
    width: 200px;
    height: 200px;
    top: 50%;
    right: 20%;
    transform: translateY(-50%);
}

/* ================================================
   Footer
   ================================================ */

.footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: var(--space-4xl) 0 var(--space-xl);
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: var(--space-4xl);
    padding-bottom: var(--space-3xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo {
    margin-bottom: var(--space-lg);
}

.footer-brand .logo-mark {
    color: var(--white);
}

.footer-brand .logo-name {
    color: var(--white);
}

.footer-desc {
    margin-bottom: var(--space-xl);
    line-height: 1.7;
}

.social-links {
    display: flex;
    gap: var(--space-md);
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--gray-400);
    transition: all var(--transition-fast);
}

.social-links a:hover {
    background: var(--primary);
    color: var(--white);
}

.social-links svg {
    width: 20px;
    height: 20px;
}

.footer-links-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.footer-col h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: var(--space-lg);
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: var(--space-sm);
}

.footer-col a {
    font-size: 0.9375rem;
    transition: color var(--transition-fast);
}

.footer-col a:hover {
    color: var(--primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-xl);
    font-size: 0.875rem;
}

.made-with {
    color: var(--gray-500);
}

/* ================================================
   Responsive Design
   ================================================ */

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--space-3xl);
        text-align: center;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-visual {
        padding: 0 var(--space-xl);
    }
    
    .floating-card {
        display: none;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .feature-card.featured {
        grid-column: span 2;
        grid-row: span 1;
    }
    
    .levels-grid {
        grid-template-columns: 1fr;
    }
    
    .stories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: var(--space-3xl);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .nav-cta {
        display: none;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .stat-divider {
        width: 60px;
        height: 1px;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .phone-frame {
        width: 260px;
        height: 540px;
        transform: none;
    }
    
    .phone-frame:hover {
        transform: none;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-card.featured {
        grid-column: span 1;
    }
    
    .stories-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links-group {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-sm);
        text-align: center;
    }
    
    .hero-scroll-indicator {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-md);
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .phone-frame {
        width: 240px;
        height: 500px;
    }
    
    .call-interface {
        padding: 40px 16px 16px;
    }
    
    .caller-avatar {
        width: 80px;
        height: 80px;
    }
    
    .caller-avatar svg {
        width: 36px;
        height: 36px;
    }
    
    .control-btn {
        width: 48px;
        height: 48px;
    }
    
    .control-btn svg {
        width: 20px;
        height: 20px;
    }
    
    .footer-links-group {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* ================================================
   Page Transitions (for support/privacy pages)
   ================================================ */

.page-header {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, var(--off-white) 0%, var(--white) 100%);
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, var(--gray-200) 1px, transparent 0);
    background-size: 40px 40px;
    opacity: 0.4;
}

.page-header .container {
    position: relative;
}

.page-title {
    margin-bottom: var(--space-md);
}

.page-subtitle {
    font-size: 1.125rem;
    color: var(--gray-600);
    max-width: 600px;
}

.page-content {
    padding: var(--space-4xl) 0;
}

/* Support Page Specific */
.faq-section {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-md);
    overflow: hidden;
    transition: all var(--transition-base);
}

.faq-item:hover {
    border-color: var(--gray-200);
    box-shadow: var(--shadow-sm);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-xl);
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-800);
    transition: color var(--transition-fast);
}

.faq-question:hover {
    color: var(--primary);
}

.faq-icon {
    width: 24px;
    height: 24px;
    color: var(--gray-400);
    transition: transform var(--transition-base);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-content {
    padding: 0 var(--space-xl) var(--space-xl);
    color: var(--gray-600);
    line-height: 1.7;
}

/* Contact Form */
.contact-section {
    background: var(--off-white);
    padding: var(--space-4xl) 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info h3 {
    margin-bottom: var(--space-lg);
}

.contact-info p {
    color: var(--gray-600);
    margin-bottom: var(--space-2xl);
    line-height: 1.7;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.contact-method {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.contact-method-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: var(--radius-md);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.contact-method-icon svg {
    width: 24px;
    height: 24px;
}

.contact-method-text {
    display: flex;
    flex-direction: column;
}

.contact-method-label {
    font-size: 0.8125rem;
    color: var(--gray-500);
}

.contact-method-value {
    font-weight: 600;
    color: var(--gray-800);
}

.contact-form {
    background: var(--white);
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: var(--space-sm);
    font-size: 0.9375rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: var(--space-md);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--gray-800);
    transition: border-color var(--transition-fast);
    background: var(--white);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-textarea {
    min-height: 140px;
    resize: vertical;
}

.form-submit {
    width: 100%;
}

/* Privacy Page Specific */
.privacy-content {
    max-width: 800px;
    margin: 0 auto;
}

.privacy-section {
    margin-bottom: var(--space-3xl);
}

.privacy-section h2 {
    font-size: 1.5rem;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 2px solid var(--gray-100);
}

.privacy-section h3 {
    font-size: 1.125rem;
    margin: var(--space-xl) 0 var(--space-md);
}

.privacy-section p {
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

.privacy-section ul {
    margin: var(--space-md) 0 var(--space-md) var(--space-xl);
    color: var(--gray-600);
}

.privacy-section li {
    margin-bottom: var(--space-sm);
    line-height: 1.7;
}

.last-updated {
    padding: var(--space-lg);
    background: var(--gray-50);
    border-radius: var(--radius-md);
    color: var(--gray-600);
    font-size: 0.9375rem;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}