/* Design Tokens from Friend Fast iOS app */
:root {
    --coral: #F97316;
    --coral-light: #F9A87C;
    --coral-dark: #EA580C;
    --cream: #FFFCFA;
    --gray-200: #E5E7EB;
    --gray-400: #9CA3AF;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;

    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--cream);
}

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

/* Navigation */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 40px;
    position: relative;
    z-index: 10;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon.small {
    width: 24px;
    height: 24px;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: white;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.nav-links a:hover {
    opacity: 1;
}

.nav-cta {
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 24px;
    backdrop-filter: blur(10px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--coral-light) 0%, var(--coral) 50%, var(--coral-dark) 100%);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
}

.hero-content {
    text-align: center;
    padding: 80px 24px 60px;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: clamp(40px, 8vw, 72px);
    font-weight: 700;
    color: white;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.tagline {
    font-size: clamp(18px, 3vw, 22px);
    color: rgba(255, 255, 255, 0.9);
    max-width: 500px;
    margin: 0 auto 40px;
    font-weight: 400;
}

/* App Store Button */
.app-store-button {
    display: inline-block;
}

.store-link {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 12px;
    transition: transform 0.2s ease, background 0.2s ease;
}

.store-link:hover {
    transform: scale(1.02);
    background: rgba(0, 0, 0, 0.95);
}

.apple-icon {
    flex-shrink: 0;
}

.store-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.store-label {
    font-size: 11px;
    opacity: 0.8;
    line-height: 1.2;
}

.store-name {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
}

/* Screenshot Section */
.screenshot-section {
    display: flex;
    justify-content: center;
    padding: 0 24px 80px;
    position: relative;
    z-index: 1;
}

.screenshot-placeholder {
    position: relative;
}

.phone-frame {
    width: 280px;
    height: 580px;
    background: #1a1a1a;
    border-radius: 45px;
    padding: 12px;
    box-shadow:
        0 40px 80px rgba(0, 0, 0, 0.25),
        inset 0 0 0 2px #333;
    position: relative;
}

.phone-frame::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 24px;
    background: #1a1a1a;
    border-radius: 20px;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--cream);
    border-radius: 35px;
    overflow: hidden;
}

.app-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-content {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

.placeholder-ring {
    width: 120px;
    height: 120px;
    border: 6px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 3s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.placeholder-text {
    font-size: 14px;
    font-weight: 500;
}

/* App Mockup Screen */
.app-mockup {
    width: 100%;
    height: 100%;
    background: var(--cream);
    border-radius: 32px;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.app-mockup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(249, 168, 124, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(249, 115, 22, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Spacer element to simulate SwiftUI Spacer */
.mockup-spacer {
    flex: 1;
}

.mockup-spacer-small {
    flex: 0.5;
}

.mockup-spacer-large {
    flex: 1.5;
}

/* Top Bar */
.mockup-top-bar {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 18px 12px 0;
    position: relative;
    z-index: 1;
}

.mockup-icon {
    width: 14px;
    height: 14px;
    color: var(--gray-400);
    opacity: 0.5;
}

/* Week Summary */
.mockup-week {
    display: flex;
    gap: 0;
    width: 100%;
    justify-content: space-between;
    padding: 12px 10px 0;
    position: relative;
    z-index: 1;
}

.mockup-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.mockup-dot {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--gray-200);
}

.mockup-dot.filled {
    background: linear-gradient(135deg, var(--coral-light) 0%, var(--coral-dark) 100%);
}

.mockup-dot.partial {
    background: conic-gradient(
        from -90deg,
        var(--coral) 0deg 252deg,
        var(--gray-200) 252deg 360deg
    );
}

.mockup-day-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--gray-400);
    margin-top: 4px;
}

.mockup-today-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--coral);
    margin-top: 4px;
}

/* Progress Ring */
.mockup-ring-container {
    position: relative;
    width: 210px;
    height: 210px;
    z-index: 1;
    flex-shrink: 0;
}

.mockup-ring {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.mockup-ring-bg {
    fill: none;
    stroke: rgba(249, 115, 22, 0.15);
    stroke-width: 14px;
}

.mockup-ring-progress {
    fill: none;
    stroke: url(#mockupGradient);
    stroke-width: 14px;
    stroke-linecap: round;
    stroke-dasharray: 565;
    stroke-dashoffset: 141; /* 75% progress */
}

/* Timer Display */
.mockup-timer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.mockup-goal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--coral);
    margin-bottom: 0;
}

.mockup-goal svg {
    width: 10px;
    height: 10px;
}

.mockup-time {
    font-size: 36px;
    font-weight: 700;
    color: var(--gray-800);
    letter-spacing: -1.5px;
    font-variant-numeric: tabular-nums;
}

/* Friends on Ring - positioned ON the ring stroke */
.mockup-friend {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
}

.mockup-friend-glow {
    position: absolute;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    filter: blur(6px);
    opacity: 0.3;
}

.mockup-friend-glow.blue { background: #4289EA; }
.mockup-friend-glow.green { background: #4BC779; }
.mockup-friend-glow.purple { background: #9B68D4; }

.mockup-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    border: 2.5px solid;
    background: var(--cream);
    position: relative;
    z-index: 1;
}

.mockup-avatar.blue {
    border-color: #4289EA;
    color: #4289EA;
    box-shadow: 0 2px 8px rgba(66, 137, 234, 0.35);
}

.mockup-avatar.green {
    border-color: #4BC779;
    color: #4BC779;
    box-shadow: 0 2px 8px rgba(75, 199, 121, 0.35);
}

.mockup-avatar.purple {
    border-color: #9B68D4;
    color: #9B68D4;
    box-shadow: 0 2px 8px rgba(155, 104, 212, 0.35);
}

.mockup-friend-time {
    font-size: 8px;
    font-weight: 600;
    margin-top: 2px;
    padding: 2px 5px;
    background: var(--cream);
    border-radius: 4px;
    position: relative;
    z-index: 1;
}

.mockup-friend-time.blue { color: #4289EA; box-shadow: 0 1px 4px rgba(66, 137, 234, 0.2); }
.mockup-friend-time.green { color: #4BC779; box-shadow: 0 1px 4px rgba(75, 199, 121, 0.2); }
.mockup-friend-time.purple { color: #9B68D4; box-shadow: 0 1px 4px rgba(155, 104, 212, 0.2); }

/* Position friends ON the ring at their progress angles */
/* Ring is 210px, stroke radius 90px, center at 105,105 */
/* Friends spread apart: ~10 o'clock and ~2 o'clock positions */
.mockup-friend.pos-1 {
    /* 10 o'clock position */
    top: 30px;
    left: 8px;
}

.mockup-friend.pos-2 {
    /* 2 o'clock position */
    top: 30px;
    right: 8px;
}

/* End Fast Button */
.mockup-btn {
    background: rgba(249, 115, 22, 0.15);
    color: var(--coral);
    border: none;
    padding: 10px 20px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

/* Time Info Row */
.mockup-times {
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 16px;
    padding-bottom: 6px;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.mockup-time-block {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mockup-time-block.start { align-items: flex-start; }
.mockup-time-block.end { align-items: flex-end; }

.mockup-time-value {
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-800);
    line-height: 1.2;
}

.mockup-time-day {
    font-size: 10px;
    font-weight: 600;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.4;
}

.mockup-edit {
    font-size: 12px;
    font-weight: 500;
    color: var(--coral);
    margin-top: 2px;
}

/* Page Dots */
.mockup-dots {
    display: flex;
    gap: 6px;
    padding-bottom: 14px;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.mockup-page-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--gray-200);
}

.mockup-page-dot.active {
    background: var(--coral);
}

/* Features Section */
.features {
    padding: 100px 0;
    background: var(--cream);
}

.features h2 {
    text-align: center;
    font-size: clamp(32px, 5vw, 44px);
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-intro {
    text-align: center;
    font-size: 18px;
    color: var(--gray-600);
    max-width: 540px;
    margin: 0 auto 60px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    padding: 32px;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--coral-light), var(--coral));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: white;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 15px;
    color: var(--gray-600);
    line-height: 1.6;
}

/* Social Proof */
.social-proof {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--cream) 0%, white 100%);
}

.quote-block {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.quote {
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 500;
    color: var(--gray-800);
    font-style: italic;
    line-height: 1.5;
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--coral-light) 0%, var(--coral) 50%, var(--coral-dark) 100%);
    text-align: center;
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
}

.cta-section h2 {
    font-size: clamp(28px, 5vw, 40px);
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.cta-section p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
}

.cta-section .app-store-button {
    position: relative;
    z-index: 1;
}

/* Footer */
.footer {
    background: var(--gray-800);
    color: white;
    padding: 48px 0 32px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 32px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 16px;
}

.footer-logo svg {
    color: var(--coral);
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

/* Stats Section */
.stats-section {
    padding: 100px 0;
    background: white;
}

.stats-content {
    display: flex;
    align-items: center;
    gap: 80px;
    max-width: 1000px;
    margin: 0 auto;
}

.stats-text {
    flex: 1;
}

.stats-text h2 {
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 18px;
    color: var(--gray-600);
    margin-bottom: 32px;
    line-height: 1.6;
}

.section-subtitle.centered {
    text-align: center;
    max-width: 500px;
    margin: 0 auto 48px;
}

.stats-features,
.share-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.stats-features li,
.share-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    color: var(--gray-700);
}

.stats-features svg,
.share-features svg {
    color: var(--coral);
    flex-shrink: 0;
}

.stats-screenshot {
    flex-shrink: 0;
}

/* Share Section */
.share-section {
    padding: 100px 0;
    background: var(--cream);
}

.share-content {
    display: flex;
    align-items: center;
    gap: 80px;
    max-width: 1000px;
    margin: 0 auto;
}

.share-screenshot {
    flex-shrink: 0;
}

.share-card-frame {
    width: 320px;
    border-radius: 24px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.12),
        0 8px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.share-card-image {
    width: 100%;
    height: auto;
    display: block;
}

.share-text {
    flex: 1;
}

.share-text h2 {
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

/* Premium Section */
.premium-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--cream) 0%, white 50%, var(--cream) 100%);
    position: relative;
}

.premium-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(249, 115, 22, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.premium-section h2 {
    text-align: center;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 1;
}

/* Feature Categories Grid */
.feature-categories {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto 48px;
    position: relative;
    z-index: 1;
}

.feature-category {
    background: white;
    padding: 28px;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.category-icon {
    font-size: 24px;
}

.feature-category h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-800);
    margin: 0;
}

.feature-category ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.feature-category li {
    font-size: 14px;
    color: var(--gray-600);
    padding-left: 20px;
    position: relative;
    line-height: 1.4;
}

.feature-category li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    width: 10px;
    height: 10px;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%23F97316' stroke-width='3' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.pricing-card {
    background: white;
    padding: 24px 20px;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    position: relative;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.pricing-card.featured {
    border: 2px solid var(--coral);
    box-shadow: 0 8px 32px rgba(249, 115, 22, 0.15);
}

.pricing-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--coral-light) 0%, var(--coral) 100%);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 8px;
    margin-top: 8px;
}

.pricing-price {
    margin-bottom: 12px;
}

.price-amount {
    font-size: 32px;
    font-weight: 700;
    color: var(--gray-800);
    letter-spacing: -1px;
}

.price-period {
    font-size: 14px;
    color: var(--gray-400);
    font-weight: 500;
}

.pricing-description {
    font-size: 13px;
    color: var(--gray-600);
    margin: 0;
    line-height: 1.4;
}

/* Responsive */
@media (max-width: 768px) {
    .nav {
        padding: 20px 24px;
    }

    .nav-links {
        gap: 20px;
    }

    .hero-content {
        padding: 60px 24px 40px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    /* Stats section responsive */
    .stats-content {
        flex-direction: column;
        gap: 48px;
        text-align: center;
    }

    .stats-features {
        align-items: center;
    }

    .stats-features li {
        text-align: left;
    }

    /* Share section responsive */
    .share-content {
        flex-direction: column;
        gap: 48px;
        text-align: center;
    }

    .share-card-frame {
        width: 280px;
    }

    .share-features {
        align-items: center;
    }

    .share-features li {
        text-align: left;
    }

    /* Premium section responsive */
    .feature-categories {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 300px;
    }

    .pricing-card {
        margin-top: 16px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 18px;
    }

    .nav-links a:not(.nav-cta) {
        display: none;
    }

    .phone-frame {
        width: 240px;
        height: 500px;
    }

    .stats-section,
    .share-section,
    .premium-section {
        padding: 60px 0;
    }

    .share-card-frame {
        width: 240px;
    }
}
