/* ============================================
   BuildFrog Landing Page — style.css
   Dark theme, amber/gold accent, responsive
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --amber: #6ECEB2;
    --amber-dark: #4aab90;
    --amber-light: #93deca;
    --dark-bg: #201747;
    --darker-bg: #160f33;
    --card-bg: #2a1f57;
    --card-bg-hover: #32256a;
    --text-primary: #ffffff;
    --text-secondary: #b8b0d4;
    --text-muted: #7d72a8;
    --border: #3a2d6e;
    --border-amber: rgba(110, 206, 178, 0.35);
    --accent-purple: #702F8A;
    --accent-purple-dark: #561f6e;
    --transition: all 0.25s ease;
    --radius: 10px;
    --radius-sm: 6px;
    --glow-teal: 0 0 4px rgba(110, 206, 178, 0.5), 0 0 12px rgba(110, 206, 178, 0.25);
    --glow-teal-text: 0 0 8px rgba(110, 206, 178, 0.5), 0 0 16px rgba(110, 206, 178, 0.2);
    --glow-teal-border: 0 0 6px rgba(110, 206, 178, 0.3), 0 0 14px rgba(110, 206, 178, 0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

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

/* ============================================
   Navigation
   ============================================ */

.navbar {
    position: sticky;
    top: 0;
    background: rgba(32, 23, 71, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 200;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.logo-frog {
    font-size: 1.5rem;
    line-height: 1;
}

.logo img {
    filter: drop-shadow(0 0 3px rgba(110, 206, 178, 0.6)) drop-shadow(0 0 8px rgba(110, 206, 178, 0.25));
}

.logo-accent {
    color: var(--amber);
    text-shadow: var(--glow-teal-text);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    letter-spacing: 0.01em;
}

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

.nav-links .nav-cta {
    background: var(--amber);
    color: var(--darker-bg);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.875rem;
}

.nav-links .nav-cta:hover {
    background: var(--amber-light);
    color: var(--darker-bg);
}

/* Mobile hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-secondary);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-mobile {
    display: none;
    border-top: 1px solid var(--border);
}

.nav-mobile.open {
    display: block;
}

.nav-mobile ul {
    list-style: none;
    padding: 1rem 24px 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.nav-mobile a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-mobile a:hover {
    color: var(--amber);
}

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

.hero {
    padding: 5rem 0 4rem;
    background: radial-gradient(ellipse 80% 50% at 60% 40%, rgba(110, 206, 178, 0.06) 0%, transparent 70%),
                linear-gradient(180deg, #201747 0%, #160f33 100%);
    overflow: hidden;
}

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

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(110, 206, 178, 0.08);
    border: 1px solid var(--border-amber);
    color: var(--amber);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.35rem 0.85rem;
    border-radius: 100px;
    box-shadow: var(--glow-teal-border);
    text-shadow: var(--glow-teal-text);
    width: fit-content;
}

.hero-title {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

.hero-title::after {
    content: '';
    display: block;
    width: 4rem;
    height: 4px;
    background: var(--amber);
    margin-top: 1rem;
    box-shadow: var(--glow-teal);
    border-radius: 2px;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 520px;
    line-height: 1.75;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-trust {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
}

.hero-trust span::before {
    color: var(--amber);
    margin-right: 0.3rem;
}

.hero-image {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow:
        0 0 0 1px var(--border),
        0 30px 80px rgba(0, 0, 0, 0.6),
        0 0 60px rgba(110, 206, 178, 0.08);
}

.hero-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius);
}

/* ============================================
   Brand Strip
   ============================================ */

.brand-strip {
    background: var(--darker-bg);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 2.5rem 0;
}

.brand-strip-inner {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.brand-logo-img {
    width: 220px;
    height: auto;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.brand-strip-tagline {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--amber);
    font-style: italic;
    margin-bottom: 0.5rem;
    text-shadow: var(--glow-teal-text);
}

.brand-strip-sub {
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 520px;
}

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

.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    font-family: inherit;
    transition: var(--transition);
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent-purple);
    color: #ffffff;
    border-color: var(--accent-purple);
    box-shadow: 0 4px 16px rgba(112, 47, 138, 0.35);
}

.btn-primary:hover {
    background: var(--accent-purple-dark);
    border-color: var(--accent-purple-dark);
    box-shadow: 0 6px 24px rgba(112, 47, 138, 0.5);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:focus-visible {
    outline: 3px solid var(--amber);
    outline-offset: 3px;
}

.btn-secondary {
    background: transparent;
    color: var(--amber);
    border-color: var(--amber);
}

.btn-secondary:hover {
    background: rgba(110, 206, 178, 0.1);
    transform: translateY(-2px);
}

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

.btn-ghost:hover {
    color: var(--text-primary);
    border-color: var(--text-secondary);
    transform: translateY(-2px);
}

.btn.full-width {
    width: 100%;
    justify-content: center;
}

/* ============================================
   Section shared styles
   ============================================ */

section {
    padding: 5.5rem 0;
}

.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.section-title span {
    color: var(--amber);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 560px;
    margin: 0 auto 3.5rem;
    line-height: 1.7;
}

/* ============================================
   Journeys
   ============================================ */

.journeys {
    background: linear-gradient(180deg, #080c17 0%, var(--dark-bg) 100%);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

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

.journey-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    outline: none;
}

.journey-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    border: 2px solid transparent;
    transition: var(--transition);
    pointer-events: none;
}

.journey-card:hover,
.journey-card:focus {
    background: var(--card-bg-hover);
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--border-amber);
}

.journey-card:hover::after,
.journey-card:focus::after {
    border-color: var(--border-amber);
}

/* Featured card */
.journey-card.featured {
    border-color: var(--border-amber);
    background: linear-gradient(160deg, #141b2e 0%, var(--card-bg) 100%);
}

.featured-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--amber);
    color: var(--darker-bg);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.25rem 0.6rem;
    border-radius: 100px;
}

.journey-card-top {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.journey-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    background: rgba(110, 206, 178, 0.08);
    border: 1px solid var(--border-amber);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.journey-icon svg {
    width: 100%;
    height: 100%;
}

.journey-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--amber);
    opacity: 0.8;
}

.journey-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.journey-headline {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--amber);
    line-height: 1.4;
}

.journey-problem {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.65;
}

.journey-value {
    padding: 1rem 1rem 1rem 1.25rem;
    background: rgba(245, 166, 35, 0.05);
    border-left: 3px solid var(--amber);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.65;
    font-style: normal;
    margin: 0;
}

.journey-value strong {
    color: var(--amber);
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
}

.journey-benefits {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex: 1;
}

.journey-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
}

.journey-benefits li::before {
    content: '✓';
    color: var(--amber);
    font-weight: 700;
    font-size: 0.85rem;
    line-height: 1.5;
    flex-shrink: 0;
}

/* ============================================
   How It Works
   ============================================ */

.how-it-works {
    background: var(--dark-bg);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 1rem;
    position: relative;
    text-align: center;
}

.step-number {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--amber);
    color: var(--darker-bg);
    font-size: 1.4rem;
    font-weight: 800;
    border-radius: 50%;
    flex-shrink: 0;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 0 6px rgba(245, 166, 35, 0.12);
}

/* connector line between steps */
.step-connector {
    position: absolute;
    top: 28px;
    left: calc(50% + 28px);
    width: calc(100% - 56px);
    height: 2px;
    background: linear-gradient(90deg, var(--border-amber), var(--border));
    z-index: 1;
}

.step-content h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.step-content p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.7;
}

.step-content em {
    color: var(--amber);
    font-style: normal;
    font-weight: 500;
}

/* ============================================
   Contact
   ============================================ */

.contact {
    background: linear-gradient(180deg, var(--dark-bg) 0%, #080c17 100%);
    border-top: 1px solid var(--border);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: start;
}

.contact-form-wrap {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem;
}

.contact-form-wrap h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.75rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.25rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.45rem;
    color: var(--text-primary);
    letter-spacing: 0.01em;
}

.required {
    color: var(--amber);
}

.optional {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 0.8rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.7rem 0.875rem;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
    -webkit-appearance: none;
    appearance: none;
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: #2a3252;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--amber);
    background: rgba(245, 166, 35, 0.04);
    box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.12);
}

.form-group input[aria-invalid="true"],
.form-group select[aria-invalid="true"] {
    border-color: #e05252;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239ba3bb' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.875rem center;
    padding-right: 2.5rem;
}

.form-group option {
    background: var(--card-bg);
    color: var(--text-primary);
}

.field-error {
    font-size: 0.8rem;
    color: #e05252;
    margin-top: 0.3rem;
    min-height: 1.1rem;
}

.form-msg {
    padding: 0.875rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 1rem;
    text-align: center;
}

.form-msg.success {
    background: rgba(74, 195, 104, 0.1);
    color: #4ac368;
    border: 1px solid rgba(74, 195, 104, 0.25);
}

.form-msg.error {
    background: rgba(224, 82, 82, 0.1);
    color: #e05252;
    border: 1px solid rgba(224, 82, 82, 0.25);
}

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

/* Contact sidebar */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-info-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.contact-info-icon {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.contact-info-card h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.contact-info-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.contact-info-card a {
    color: var(--amber);
    text-decoration: none;
    transition: var(--transition);
}

.contact-info-card a:hover {
    color: var(--amber-light);
    text-decoration: underline;
}

.github-link {
    font-size: 0.82rem;
    font-weight: 600;
}

.contact-highlight {
    background: rgba(245, 166, 35, 0.05);
    border: 1px solid var(--border-amber);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.contact-highlight-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--amber);
    margin-bottom: 0.75rem;
}

.contact-highlight ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-highlight li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding-left: 1.25rem;
    position: relative;
}

.contact-highlight li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--amber);
    font-size: 0.8rem;
}

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

.footer {
    background: var(--darker-bg);
    border-top: 1px solid var(--border);
    padding: 2.5rem 0 2rem;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.footer-brand .logo-frog {
    font-size: 1.4rem;
}

.footer-logo-text {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.footer-tagline {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-style: italic;
}

.footer-links {
    display: flex;
    gap: 1.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--amber);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.82rem;
}

/* ============================================
   Fade-in animation (JS-driven)
   ============================================ */

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger journey cards */
.journey-card:nth-child(2).fade-in { transition-delay: 0.1s; }
.journey-card:nth-child(3).fade-in { transition-delay: 0.2s; }

/* Stagger steps */
.step:nth-child(2).fade-in { transition-delay: 0.1s; }
.step:nth-child(3).fade-in { transition-delay: 0.2s; }
.step:nth-child(4).fade-in { transition-delay: 0.3s; }

/* ============================================
   Responsive — Tablet (≤ 960px)
   ============================================ */

@media (max-width: 960px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .hero {
        padding: 3.5rem 0 3rem;
    }

    .hero-image {
        max-width: 560px;
        margin: 0 auto;
    }

    .journeys-grid {
        grid-template-columns: 1fr;
        max-width: 540px;
        margin: 0 auto;
    }

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

    .step-connector {
        display: none;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .brand-strip-inner {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .brand-strip-sub {
        max-width: 100%;
    }

    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }
}

/* ============================================
   Responsive — Mobile (≤ 600px)
   ============================================ */

@media (max-width: 600px) {
    section {
        padding: 3.5rem 0;
    }

    .hero {
        padding: 2.5rem 0 2rem;
    }

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

    .hero-cta .btn {
        width: 100%;
        text-align: center;
    }

    .hero-trust {
        gap: 0.75rem;
        font-size: 0.78rem;
    }

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

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form-wrap {
        padding: 1.5rem;
    }

    .footer-inner {
        flex-direction: column;
        gap: 1.5rem;
    }

    .footer-links {
        gap: 1rem;
    }

    .brand-logo-img {
        width: 100%;
        max-width: 320px;
    }

    .journey-card {
        padding: 1.5rem;
    }

    .section-title {
        margin-bottom: 0.5rem;
    }

    .section-subtitle {
        margin-bottom: 2.5rem;
    }
}

/* ============================================
   Reduced motion
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .fade-in {
        opacity: 1;
        transform: none;
    }
}
