/* ==========================================================================
   Fetera Landing Page
   ========================================================================== */

:root {
    --color-bg: #faf9f7;
    --color-bg-alt: #f3f1ec;
    --color-surface: #ffffff;
    --color-text: #1a1a2e;
    --color-text-muted: #5c5c72;
    --color-primary: #ff5c35;
    --color-primary-dark: #e84a24;
    --color-secondary: #7c3aed;
    --color-accent: #00c9a7;
    --color-border: rgba(26, 26, 46, 0.08);
    --gradient-brand: linear-gradient(135deg, #ff5c35 0%, #ff8a5c 40%, #7c3aed 100%);
    --gradient-soft: linear-gradient(135deg, rgba(255, 92, 53, 0.12) 0%, rgba(124, 58, 237, 0.1) 100%);
    --shadow-sm: 0 2px 8px rgba(26, 26, 46, 0.06);
    --shadow-md: 0 8px 32px rgba(26, 26, 46, 0.1);
    --shadow-lg: 0 24px 64px rgba(26, 26, 46, 0.14);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-full: 999px;
    --font-display: 'Syne', system-ui, sans-serif;
    --font-body: 'DM Sans', system-ui, sans-serif;
    --container: 1140px;
    --header-height: 72px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
    text-decoration: none;
}

h1, h2, h3 {
    font-family: var(--font-display);
    line-height: 1.15;
    margin: 0 0 0.75rem;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.4rem, 5vw, 3.75rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(1.9rem, 3.5vw, 2.75rem);
    font-weight: 700;
}

h3 {
    font-size: 1.2rem;
    font-weight: 700;
}

p {
    margin: 0 0 1rem;
}

.container {
    width: min(100% - 2rem, var(--container));
    margin-inline: auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 8px 24px rgba(255, 92, 53, 0.35);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    box-shadow: 0 12px 32px rgba(255, 92, 53, 0.4);
}

.btn-ghost {
    background: transparent;
    color: var(--color-text);
    border-color: var(--color-border);
}

.btn-ghost:hover {
    background: var(--color-surface);
    box-shadow: var(--shadow-sm);
}

.btn-lg {
    padding: 1rem 1.75rem;
    font-size: 1rem;
}

.btn-sm {
    padding: 0.6rem 1.1rem;
    font-size: 0.875rem;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(250, 249, 247, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.25rem;
}

.logo-mark {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--gradient-brand);
    color: #fff;
    font-size: 1rem;
}

.nav-links {
    display: none;
    gap: 2rem;
    font-size: 0.925rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

.nav-links a:hover {
    color: var(--color-text);
}

/* Typography helpers */
.eyebrow {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    background: var(--gradient-soft);
    color: var(--color-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.gradient-text {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section {
    padding: 5rem 0;
}

.section-head {
    max-width: 640px;
    margin-bottom: 3rem;
}

.section-head.center {
    margin-inline: auto;
    text-align: center;
}

.section-lead {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* Hero */
.hero {
    padding: 3rem 0 5rem;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-lead {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    max-width: 520px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 2rem 0 1rem;
}

.hero-note {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    min-height: 480px;
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    pointer-events: none;
}

.glow-1 {
    width: 280px;
    height: 280px;
    background: rgba(255, 92, 53, 0.35);
    top: 10%;
    left: 10%;
}

.glow-2 {
    width: 240px;
    height: 240px;
    background: rgba(124, 58, 237, 0.3);
    bottom: 5%;
    right: 5%;
}

/* Phone mockup */
.phone {
    position: relative;
    width: 280px;
    background: #1a1a2e;
    border-radius: 40px;
    padding: 12px;
    box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255, 255, 255, 0.08);
    z-index: 1;
}

.phone-notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 28px;
    background: #1a1a2e;
    border-radius: 0 0 16px 16px;
    z-index: 2;
}

.phone-screen {
    background: #fff;
    border-radius: 32px;
    padding: 3rem 1rem 1.25rem;
    min-height: 420px;
    overflow: hidden;
}

.phone-hero {
    animation: float 6s ease-in-out infinite;
}

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

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.app-pill {
    padding: 0.35rem 0.75rem;
    background: var(--gradient-soft);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-secondary);
}

.app-avatar {
    font-size: 1.25rem;
}

.app-hero-card {
    background: var(--gradient-brand);
    color: #fff;
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.app-label {
    font-size: 0.7rem;
    opacity: 0.85;
    margin-bottom: 0.25rem;
}

.app-hero-card h3 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.app-meta {
    font-size: 0.75rem;
    opacity: 0.9;
    margin: 0;
}

.app-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.app-tile {
    background: var(--color-bg-alt);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    font-size: 0.7rem;
}

.app-tile span {
    font-size: 1rem;
    display: block;
    margin-bottom: 0.25rem;
}

.app-tile strong {
    display: block;
    font-size: 0.8rem;
    margin-bottom: 0.1rem;
}

.app-tile small {
    color: var(--color-text-muted);
}

.app-participants {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--color-border);
}

.app-participants p {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    margin: 0;
}

.avatar-stack {
    display: flex;
}

.avatar-stack span {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gradient-brand);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    border: 2px solid #fff;
    margin-left: calc(var(--i) * -8px);
}

.avatar-stack span:first-child {
    margin-left: 0;
}

/* Problem section */
.problem {
    background: var(--color-bg-alt);
}

.chaos-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.chaos-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.chaos-card h3 {
    margin-top: 1.25rem;
}

.chaos-card p {
    color: var(--color-text-muted);
    margin-bottom: 0;
    font-size: 0.95rem;
}

.chat-bubbles {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.bubble {
    max-width: 85%;
    padding: 0.6rem 0.9rem;
    border-radius: 16px;
    font-size: 0.8rem;
    line-height: 1.4;
}

.bubble-left {
    align-self: flex-start;
    background: #e8e8ed;
    border-bottom-left-radius: 4px;
}

.bubble-right {
    align-self: flex-end;
    background: #dcf8c6;
    border-bottom-right-radius: 4px;
}

.tool-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tool-pill {
    padding: 0.5rem 0.85rem;
    background: var(--color-bg-alt);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px dashed var(--color-border);
}

.tool-pill.muted {
    opacity: 0.6;
}

.highlight-card {
    background: var(--gradient-soft);
    border-color: rgba(124, 58, 237, 0.15);
}

.chaos-stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    max-width: 240px;
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-bottom: 3rem;
}

.feature-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.feature-showcase {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    min-height: 380px;
    padding: 2rem 0;
}

.phone-feature {
    width: 240px;
}

.phone-feature .phone-screen {
    min-height: 360px;
    padding-top: 2.5rem;
}

.phone-offset {
    display: none;
}

.screen-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.timeline-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.8rem;
}

.timeline-item:last-child {
    border-bottom: none;
}

.timeline-item span {
    color: var(--color-primary);
    font-weight: 700;
    min-width: 42px;
}

.timeline-item strong {
    display: block;
    font-size: 0.85rem;
}

.timeline-item small {
    color: var(--color-text-muted);
}

.timeline-item.active {
    background: var(--gradient-soft);
    margin: 0 -0.5rem;
    padding: 0.75rem 0.5rem;
    border-radius: var(--radius-sm);
    border-bottom: none;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
}

.gallery-item {
    aspect-ratio: 1;
    border-radius: 8px;
    background: linear-gradient(135deg, #ddd 0%, #bbb 100%);
}

.g1 { background: linear-gradient(135deg, #ff9a76, #ff6b4a); }
.g2 { background: linear-gradient(135deg, #a8edea, #7c3aed); }
.g3 { background: linear-gradient(135deg, #fbc2eb, #a6c1ee); }
.g4 { background: linear-gradient(135deg, #84fab0, #00c9a7); }
.g5 { background: linear-gradient(135deg, #ffecd2, #fcb69f); }
.g6 { background: linear-gradient(135deg, #d299c2, #fef9d7); }

.gallery-caption {
    margin-top: 0.75rem;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-align: center;
}

/* Steps */
.steps {
    background: var(--color-bg-alt);
}

.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.step-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-brand);
}

.step-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 0.75rem;
}

.step-card p {
    color: var(--color-text-muted);
    margin-bottom: 0;
}

/* Use cases */
.use-cases-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.use-case-card {
    border-radius: var(--radius-lg);
    padding: 2rem;
    color: #fff;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    overflow: hidden;
}

.use-case-card::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.15;
    background: radial-gradient(circle at top right, #fff, transparent 60%);
}

.use-case-emoji {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    position: relative;
}

.use-case-card h3,
.use-case-card p {
    position: relative;
    color: #fff;
}

.use-case-card p {
    opacity: 0.9;
    font-size: 0.95rem;
    margin-bottom: 0;
}

.uc-weekend {
    background: linear-gradient(145deg, #ff5c35, #c2410c);
}

.uc-evg {
    background: linear-gradient(145deg, #7c3aed, #4c1d95);
}

.uc-vacances {
    background: linear-gradient(145deg, #00c9a7, #0d9488);
}

/* CTA final */
.cta-final {
    padding-bottom: 3rem;
}

.cta-box {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
    background: var(--color-text);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    overflow: hidden;
    position: relative;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 92, 53, 0.3), transparent 70%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    color: #fff;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.05rem;
    max-width: 480px;
}

.store-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    color: #fff;
    transition: background 0.2s ease, transform 0.2s ease;
}

.store-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
}

.store-btn svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

.store-btn span {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.store-btn small {
    font-size: 0.65rem;
    opacity: 0.8;
}

.store-btn strong {
    font-size: 0.95rem;
}

.cta-visual {
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.phone-cta {
    width: 220px;
}

.screen-cta {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    padding-top: 2.5rem;
}

.cta-app-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: var(--gradient-brand);
    color: #fff;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    display: grid;
    place-items: center;
    margin-bottom: 1rem;
}

.screen-cta h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.screen-cta p {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: 1.25rem;
}

.cta-fake-btn {
    padding: 0.65rem 1.25rem;
    background: var(--color-primary);
    color: #fff;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

/* Footer */
.site-footer {
    padding: 2.5rem 0;
    border-top: 1px solid var(--color-border);
}

.footer-inner {
    text-align: center;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.footer-tagline {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    opacity: 0.7;
    margin: 0;
}

/* Responsive */
@media (min-width: 640px) {
    .chaos-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .highlight-card {
        grid-column: span 2;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .use-cases-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }

    .hero-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .hero-visual {
        justify-content: flex-end;
    }

    .phone-offset {
        display: block;
        transform: translateY(24px);
    }

    .cta-box {
        grid-template-columns: 1.2fr 0.8fr;
        padding: 3.5rem;
    }
}

@media (min-width: 1024px) {
    .chaos-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .highlight-card {
        grid-column: auto;
    }

    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .header-cta {
        display: none;
    }

    .hero {
        padding-top: 2rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }
}
