/* ===== VARIABLES ===== */
:root {
    --bg: #FAFAF8;
    --bg-alt: #F0EFEC;
    --text: #1a1a1a;
    --text-muted: #6b6b6b;
    --text-dim: #999;
    --accent: #D4594E;
    --accent-hover: #c04a40;
    --accent-glow: rgba(212, 89, 78, 0.15);
    --border: rgba(0, 0, 0, 0.08);
    --radius: 16px;
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'DM Sans', sans-serif;
}

/* ===== RESET ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-body); background: var(--bg); color: var(--text); overflow-x: hidden; line-height: 1.6; }
a { text-decoration: none; color: inherit; }

/* ===== NAV ===== */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 20px 40px;
    background: rgba(250, 250, 248, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}
.nav-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.logo { font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text); }
.logo-icon { margin-left: 4px; font-size: 1.4rem; }
.nav-links { display: flex; gap: 32px; }
.nav-links a { font-size: 0.9rem; color: var(--text-muted); font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
    font-family: var(--font-display); font-size: 0.85rem; font-weight: 600;
    background: var(--text); color: white; padding: 10px 24px; border-radius: 100px; transition: all 0.2s;
}
.nav-cta:hover { background: #333; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--font-display); font-weight: 600; font-size: 1rem;
    padding: 16px 36px; border-radius: 100px; transition: all 0.25s; cursor: pointer;
}
.btn-primary { background: var(--text); color: white; }
.btn-primary:hover { background: #333; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.btn-large { font-size: 1.1rem; padding: 20px 44px; }
.btn-icon { display: flex; align-items: center; }

/* ===== HERO ===== */
.hero {
    min-height: 100vh; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 120px 40px 60px; text-align: center; position: relative;
}
.hero-content { max-width: 700px; }
.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(3.2rem, 8vw, 5.5rem);
    font-weight: 700; line-height: 1.05; letter-spacing: -0.03em; margin-bottom: 24px;
    color: var(--text);
}
.highlight { color: var(--accent); }
.hero-sub {
    font-size: 1.25rem; color: var(--text-muted); line-height: 1.7;
    max-width: 480px; margin: 0 auto 40px;
}
.hero-scroll {
    position: absolute; bottom: 40px; color: var(--text-dim);
    animation: float 2s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ===== STEPS ===== */
.steps-section { padding: 0 40px; }

.step-block {
    max-width: 1100px; margin: 0 auto;
    min-height: 80vh;
    display: flex; align-items: center; gap: 80px;
    padding: 80px 0;
}
.step-block-reverse { flex-direction: row-reverse; }

.step-text { flex: 1; }
.step-num {
    font-family: var(--font-display); font-size: 0.8rem; font-weight: 700;
    color: var(--accent); letter-spacing: 0.1em; margin-bottom: 16px;
}
.step-text h2 {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 20px;
}
.step-text p { font-size: 1.1rem; color: var(--text-muted); line-height: 1.8; max-width: 440px; }

.step-visual { flex: 1; display: flex; align-items: center; justify-content: center; }

/* Phone mockup */
.phone {
    width: 280px; background: #ffffff; border-radius: 32px;
    border: 2px solid var(--border); overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}
.phone-screen { padding: 8px; }
.imessage-screen { background: #f5f5f5; border-radius: 24px; overflow: hidden; }
.imessage-header {
    padding: 16px; text-align: center; background: #fff;
    border-bottom: 1px solid var(--border);
}
.imessage-contact { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; color: var(--text); }
.imessage-bubbles { padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.bubble { max-width: 85%; padding: 10px 14px; border-radius: 18px; font-size: 0.78rem; line-height: 1.5; }
.bubble-them { background: #e5e5ea; color: var(--text); align-self: flex-start; border-bottom-left-radius: 4px; }
.bubble-me { background: #0b84fe; color: white; align-self: flex-end; border-bottom-right-radius: 4px; }
.bubble-them-friend { background: #d1f7c4; color: var(--text); align-self: flex-start; border-bottom-left-radius: 4px; }

/* Video cards */
.video-cards { display: flex; gap: 16px; }
.video-card {
    width: 140px; height: 190px; border-radius: 16px; overflow: hidden; position: relative;
    background: #222;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    animation: card-wiggle 3s ease-in-out infinite;
}
.video-card:nth-child(2) { animation-delay: 0.5s; }
.video-card:nth-child(3) { animation-delay: 1s; }
@keyframes card-wiggle {
    0%, 100% { transform: rotate(0deg); }
    20% { transform: rotate(-2deg) translateY(-3px); }
    40% { transform: rotate(1.5deg); }
    60% { transform: rotate(-1deg) translateY(-2px); }
    80% { transform: rotate(0.5deg); }
}
.video-card-img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.video-card-rec {
    position: absolute; top: 10px; left: 10px; z-index: 2;
    font-size: 0.6rem; font-family: var(--font-display); font-weight: 700; color: white;
    display: flex; align-items: center; gap: 4px;
    background: rgba(0,0,0,0.4); padding: 2px 6px; border-radius: 4px;
}
.rec-dot { width: 6px; height: 6px; background: #FF0000; border-radius: 50%; animation: pulse-rec 1.5s ease-in-out infinite; }
@keyframes pulse-rec { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.video-card-time {
    position: absolute; top: 10px; right: 10px; z-index: 2;
    font-size: 0.6rem; font-family: var(--font-display); font-weight: 700; color: white;
    background: rgba(0,0,0,0.4); padding: 2px 6px; border-radius: 4px;
}
.video-card-silhouette svg { width: 60px; height: 75px; }
.video-card-label {
    position: absolute; bottom: 0; left: 0; right: 0; padding: 8px;
    font-size: 0.65rem; font-family: var(--font-display); font-weight: 600; color: white;
    text-align: center; background: linear-gradient(transparent, rgba(0,0,0,0.6));
}

/* Match visual */
.match-visual {
    width: 200px; height: 200px; border-radius: 50%;
    border: 2px solid rgba(212, 89, 78, 0.12);
    display: flex; align-items: center; justify-content: center;
    background: rgba(212, 89, 78, 0.04);
    animation: pulse-ring 1.8s ease-in-out infinite;
}
.match-circle {
    width: 120px; height: 120px; border-radius: 50%;
    border: 1px solid rgba(212, 89, 78, 0.15);
    display: flex; align-items: center; justify-content: center;
    background: rgba(212, 89, 78, 0.06);
}
.match-circle svg {
    animation: heartbeat 1.3s ease-in-out infinite;
    transform-origin: center center;
    fill: var(--accent);
    stroke: var(--accent);
}
@keyframes heartbeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.25); }
    28% { transform: scale(1); }
    42% { transform: scale(1.15); }
    56% { transform: scale(1); }
    100% { transform: scale(1); }
}
@keyframes pulse-ring {
    0% { box-shadow: 0 0 0 0 rgba(212, 89, 78, 0.15); }
    50% { box-shadow: 0 0 0 20px rgba(212, 89, 78, 0); }
    100% { box-shadow: 0 0 0 0 rgba(212, 89, 78, 0); }
}

/* Fun visual */
.fun-visual { display: flex; align-items: center; justify-content: center; position: relative; width: 200px; height: 200px; margin: 0 auto; }
.fun-emoji { font-size: 6rem; animation: party-bounce 2s ease-in-out infinite; position: relative; z-index: 2; }
@keyframes party-bounce {
    0%, 100% { transform: rotate(0deg) scale(1); }
    15% { transform: rotate(-12deg) scale(1.15); }
    30% { transform: rotate(8deg) scale(1.05); }
    45% { transform: rotate(-5deg) scale(1.1); }
    60% { transform: rotate(3deg) scale(1); }
}
.confetti-container { position: absolute; inset: 0; pointer-events: none; }
.confetti {
    position: absolute; width: 8px; height: 8px; border-radius: 2px;
    animation: confetti-fall 3s ease-in-out infinite;
}
.c1 { background: var(--accent); left: 20%; top: 10%; animation-delay: 0s; }
.c2 { background: #F4A261; left: 70%; top: 5%; animation-delay: 0.4s; width: 6px; height: 6px; border-radius: 50%; }
.c3 { background: #2A9D8F; left: 85%; top: 20%; animation-delay: 0.8s; }
.c4 { background: #E9C46A; left: 10%; top: 30%; animation-delay: 1.2s; width: 6px; height: 6px; border-radius: 50%; }
.c5 { background: #264653; left: 50%; top: 0%; animation-delay: 0.6s; }
.c6 { background: var(--accent); left: 90%; top: 40%; animation-delay: 1s; width: 6px; height: 6px; border-radius: 50%; }
.c7 { background: #E9C46A; left: 30%; top: 5%; animation-delay: 1.6s; }
.c8 { background: #2A9D8F; left: 60%; top: 15%; animation-delay: 0.2s; width: 6px; height: 6px; border-radius: 50%; }
@keyframes confetti-fall {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    50% { opacity: 1; }
    100% { transform: translateY(160px) rotate(720deg); opacity: 0; }
}

/* ===== PILLARS ===== */
.pillars-section {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.section-inner { max-width: 1100px; margin: 0 auto; padding: 120px 40px; }
.section-inner > h2 {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 700; letter-spacing: -0.02em; margin-bottom: 60px;
    text-align: center;
}
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.pillar { text-align: center; }
.pillar-icon {
    width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 24px;
    background: white; border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center; color: var(--accent);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.pillar h3 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; margin-bottom: 12px; }
.pillar p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.7; max-width: 300px; margin: 0 auto; }

/* ===== FOUNDER ===== */
.founder-section { background: var(--bg); }
.founder-section .section-inner { max-width: 720px; }
.founder-section h2 {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 700; letter-spacing: -0.02em; margin-bottom: 40px;
    text-align: center;
}
.founder-story {
    font-size: 1.1rem; color: var(--text-muted); line-height: 1.9;
    margin-bottom: 24px;
}
.founder-story em { color: var(--text); font-style: normal; font-weight: 500; }
.founder-story:last-child { margin-bottom: 0; }

/* ===== FAQ ===== */
.faq-section { background: var(--bg); }
.faq-list { max-width: 640px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
    width: 100%; display: flex; align-items: center; justify-content: space-between;
    padding: 24px 0; background: none; border: none; color: var(--text);
    font-family: var(--font-display); font-size: 1.05rem; font-weight: 600;
    cursor: pointer; text-align: left; transition: color 0.2s;
}
.faq-question:hover { color: var(--accent); }
.faq-chevron { transition: transform 0.3s; flex-shrink: 0; margin-left: 16px; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-item.open .faq-answer { max-height: 200px; }
.faq-answer p { padding-bottom: 24px; font-size: 0.95rem; color: var(--text-muted); line-height: 1.7; }

/* ===== CTA ===== */
.cta-section { text-align: center; position: relative; background: var(--bg-alt); border-top: 1px solid var(--border); }
.cta-section .section-inner { padding: 140px 40px; }
.cta-section h2 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700; letter-spacing: -0.02em; margin-bottom: 12px;
}
.cta-section p { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 36px; }

/* ===== FOOTER ===== */
.footer { border-top: 1px solid var(--border); padding: 40px; background: var(--bg); }
.footer-inner {
    max-width: 1100px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px;
}
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 0.85rem; color: var(--text-muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: 0.75rem; color: var(--text-dim); }

/* ===== ANIMATIONS ===== */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .nav-links { display: none; }
    .step-block, .step-block-reverse { flex-direction: column; gap: 40px; min-height: auto; padding: 60px 0; }
    .step-text { text-align: center; }
    .step-text p { margin: 0 auto; }
    .pillars { grid-template-columns: 1fr; gap: 40px; }
    .section-inner { padding: 80px 20px; }
    .steps-section { padding: 0 20px; }
    .hero { padding: 100px 20px 60px; }
    .nav { padding: 16px 20px; }
    .footer-inner { flex-direction: column; text-align: center; }
    .video-cards { gap: 10px; }
    .video-card { width: 110px; height: 155px; }
}
@media (max-width: 480px) {
    .hero h1 { font-size: 2.8rem; }
    .btn { width: 100%; justify-content: center; }
    .video-cards { flex-wrap: wrap; justify-content: center; }
}
