/* ==========================================================================
   SpaceAI — Landing Page Sections
   ========================================================================== */

/* Header — matches v2 */
.site-header {
    position: absolute; top: 0; left: 0; right: 0;
    height: 88px; z-index: 1000;
    transition: all 300ms ease; background: transparent;
}
.site-header.scrolled {
    position: fixed; top: 0;
    background: rgba(255,255,255,0.98);
    box-shadow: 0 2px 6px rgba(19,19,22,0.08);
}
.site-header.scrolled .nav__link { color: #1f1f1f; }
.site-header.scrolled .nav__cta { background: #1f1f1f; }
.site-header.scrolled .site-logo--white { display: none; }
.site-header.scrolled .site-logo--dark { display: block; }
.site-logo--dark { display: none; }
.header__inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 100%; max-width: 1416px; margin: 0 auto; padding: 0 24px;
}
.site-logo img { height: 32px; width: auto; max-width: none; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav__list { display: flex; align-items: center; gap: 28px; }
.nav__link {
    font-family: var(--font-body); font-size: 18px; font-weight: 500;
    color: #ffffff; transition: opacity 200ms ease;
}
.nav__link:hover { opacity: 0.7; }
.nav__cta {
    margin-left: 20px; height: 44px; padding: 0 24px;
    background: #1f1f1f; color: #ffffff !important;
    font-family: var(--font-body); font-size: 18px; font-weight: 500;
    border-radius: 0; line-height: 44px; display: inline-flex; align-items: center;
    clip-path: polygon(0px 12px, 6px 12px, 6px 6px, 12px 6px, 12px 0px,
        calc(100% - 12px) 0px, calc(100% - 12px) 6px, calc(100% - 6px) 6px,
        calc(100% - 6px) 12px, 100% 12px, 100% calc(100% - 12px),
        calc(100% - 6px) calc(100% - 12px), calc(100% - 6px) calc(100% - 6px),
        calc(100% - 12px) calc(100% - 6px), calc(100% - 12px) 100%,
        12px 100%, 12px calc(100% - 6px), 6px calc(100% - 6px),
        6px calc(100% - 12px), 0px calc(100% - 12px));
}
.nav__cta:hover { background: #2a2a2a; }

/* Language Switcher */
.lang-switcher { display: flex; align-items: center; gap: 4px; margin-left: 16px; }
.lang-switcher a { font-size: 14px; font-weight: 600; padding: 4px 8px; border-radius: 4px; color: rgba(255,255,255,0.6); }
.lang-switcher a.active, .lang-switcher a:hover { color: #fff; background: rgba(255,255,255,0.15); }
.scrolled .lang-switcher a { color: #6b7280; }
.scrolled .lang-switcher a.active { color: #1f1f1f; background: rgba(0,0,0,0.08); }

/* Mobile Toggle */
.nav__toggle { display: none; background: none; border: none; cursor: pointer; width: 40px; height: 40px; position: relative; }
.nav__toggle span { display: block; width: 28px; height: 3px; background: #fff; position: absolute; left: 6px; transition: all 200ms ease; }
.nav__toggle span:nth-child(1) { top: 12px; width: 16px; left: auto; right: 6px; }
.nav__toggle span:nth-child(2) { top: 20px; }
.nav__toggle span:nth-child(3) { top: 28px; width: 16px; }
.scrolled .nav__toggle span { background: #1f1f1f; }

/* Hero — matches v2: video bg, full viewport, centered text */
.hero {
    position: relative; height: 100vh;
    background-color: #000; padding: 0; overflow: hidden; z-index: 0;
    display: flex; align-items: center; justify-content: center; text-align: center;
}
.hero__video {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 100%; height: 100%; opacity: 0.5; object-fit: cover; z-index: 0;
}
.hero__bg { display: none; }
.hero__overlay { display: none; }
.hero::before { display: none; }
.hero__content {
    position: relative; z-index: 1; max-width: 700px; padding: 56px 24px 0;
}
.hero__title {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
    font-weight: 500; font-size: 56px; line-height: 56px;
    letter-spacing: 1.12px; text-transform: capitalize;
    color: #ffffff; margin-bottom: 16px;
    animation: fadeInUp 0.8s ease forwards;
}
.hero__subtitle {
    font-family: var(--font-body); font-weight: 400; font-size: 18px;
    line-height: 1.55; color: #ffffff; max-width: 549px;
    margin: 0 auto 32px; opacity: 0;
    animation: fadeInUp 0.8s ease 0.2s forwards;
}
.hero__actions {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    opacity: 0; animation: fadeInUp 0.8s ease 0.4s forwards;
}
/* Hero buttons — v2 style: pill shape */
.hero .btn--primary {
    height: 44px; padding: 0 28px; border-radius: 22px;
    background: #1f1f1f; color: #fff; border: 1px solid transparent;
    font-size: 18px; font-weight: 400; line-height: 44px;
}
.hero .btn--primary:hover { background: #2a2a2a; }
.hero .btn--outline {
    height: 44px; padding: 0 28px; border-radius: 22px;
    background: #ffffff; color: #1f1f1f; border: 1px solid transparent;
    font-size: 18px; font-weight: 400; line-height: 44px;
}
.hero .btn--outline:hover { background: #f5f5f5; color: #1f1f1f; }

/* Integrations / Brands — matches v2 */
.integrations {
    padding: 100px 0; background: #ffffff;
    min-height: 100vh; display: flex; align-items: center;
}
.integrations > .container { width: 100%; }
.integrations .section_title_container {
    margin-bottom: 49px;
}
.integrations .section_title_container p {
    font-size: 16px; letter-spacing: 0.056em;
    padding-bottom: 17px; border-bottom: 1px dashed #dedede;
    text-transform: uppercase; color: #1f1f1f; margin-bottom: 0;
}
.integrations .section_title_container h2 {
    padding-top: 22px; font-family: var(--font-heading);
    font-weight: 800; letter-spacing: -0.06em;
    text-transform: uppercase; font-size: 56px; line-height: 1.2; color: #000;
}
/* Brands auto-scroll slider */
.brands_slider {
    overflow: hidden; position: relative;
}
.brands_slider__track {
    display: flex; gap: 16px;
    animation: brandsScroll 20s linear infinite;
    width: max-content;
}
.brands_slider__track:hover { animation-play-state: paused; }
@keyframes brandsScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.brands_item {
    height: 130px; min-width: 200px; flex-shrink: 0;
    background-color: #f5f5f5;
    display: flex; align-items: center; justify-content: center;
    clip-path: polygon(
        0px 24px, 12px 24px, 12px 12px, 24px 12px, 24px 0px,
        100% 0px, 100% calc(100% - 24px),
        calc(100% - 12px) calc(100% - 24px), calc(100% - 12px) calc(100% - 12px),
        calc(100% - 24px) calc(100% - 12px), calc(100% - 24px) 100%, 0% 100%);
}
.brands_item img {
    max-width: 120px; max-height: 40px;
    width: auto; height: auto; object-fit: contain;
}
/* Reveal animation */
.reveal {
    opacity: 0; transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
    opacity: 1; transform: translateY(0);
}



/* Features — matches Figma Key Features */
.features {
    padding: 100px 0; background: #ffffff;
}
.features .section_title_container {
    margin-bottom: 20px;
}
.features .section_title_container p {
    font-size: 16px; letter-spacing: 0.056em;
    padding-bottom: 17px; border-bottom: 1px dashed #dedede;
    text-transform: uppercase; color: #1f1f1f; margin-bottom: 0;
}
.features .section_title_container h2 {
    padding-top: 22px; font-family: var(--font-heading);
    font-weight: 800; letter-spacing: -0.06em;
    text-transform: uppercase; font-size: 56px; line-height: 1.2; color: #000;
}
.features__intro {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 49px; gap: 24px;
}
.features__intro p {
    font-size: 18px; color: #1f1f1f; max-width: 600px; line-height: 1.55;
}
.btn--dark {
    height: 44px; padding: 0 28px; background: #1f1f1f; color: #fff;
    font-size: 18px; font-weight: 500; line-height: 44px;
    display: inline-flex; align-items: center; white-space: nowrap;
    clip-path: polygon(0px 12px, 6px 12px, 6px 6px, 12px 6px, 12px 0px,
        calc(100% - 12px) 0px, calc(100% - 12px) 6px, calc(100% - 6px) 6px,
        calc(100% - 6px) 12px, 100% 12px, 100% calc(100% - 12px),
        calc(100% - 6px) calc(100% - 12px), calc(100% - 6px) calc(100% - 6px),
        calc(100% - 12px) calc(100% - 6px), calc(100% - 12px) 100%,
        12px 100%, 12px calc(100% - 6px), 6px calc(100% - 6px),
        6px calc(100% - 12px), 0px calc(100% - 12px));
}
.btn--dark:hover { background: #2a2a2a; }
.features__grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
}
.feature-card {
    background: #f5f5f5; overflow: hidden;
    clip-path: polygon(
        0px 24px, 12px 24px, 12px 12px, 24px 12px, 24px 0px,
        100% 0px, 100% calc(100% - 24px),
        calc(100% - 12px) calc(100% - 24px), calc(100% - 12px) calc(100% - 12px),
        calc(100% - 24px) calc(100% - 12px), calc(100% - 24px) 100%, 0% 100%);
}
.feature-card__image {
    width: 100%; height: 340px; overflow: hidden;
}
.feature-card__image img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s ease;
}
.feature-card:hover .feature-card__image img {
    transform: scale(1.05);
}
.feature-card__label {
    display: inline-block; font-size: 14px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.05em;
    color: #6b7280; padding: 20px 24px 0;
}
.feature-card__title {
    font-family: var(--font-heading); font-size: 24px; font-weight: 700;
    color: #000; padding: 8px 24px 0; line-height: 1.3;
}
.feature-card__text {
    font-size: 16px; color: #6b7280; line-height: 1.55;
    padding: 8px 24px 24px;
}

/* How It Works / Tools — matches v2 */
.tools {
    padding: 100px 0; background: #ffffff;
}
.tools .section_title_container {
    margin-bottom: 49px;
}
.tools .section_title_container p {
    font-size: 16px; letter-spacing: 0.056em;
    padding-bottom: 17px; border-bottom: 1px dashed #dedede;
    text-transform: uppercase; color: #1f1f1f; margin-bottom: 0;
}
.tools .section_title_container h2 {
    padding-top: 22px; font-family: var(--font-heading);
    font-weight: 800; letter-spacing: -0.04em;
    font-size: 48px; line-height: 1.15; color: #000;
}
.tools_container {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
}
.tools_item {
    padding: 32px; background-color: #f8f8f8;
    border-radius: 16px; user-select: none;
}
.tools_content {
    display: flex; align-items: flex-start; gap: 20px;
}
.tools_number {
    font-family: var(--font-heading); font-size: 48px;
    font-weight: 300; color: #1f1f1f; line-height: 1;
    flex-shrink: 0; letter-spacing: -0.02em;
}
.tools_content h3 {
    font-family: var(--font-heading); font-size: 18px;
    font-weight: 700; color: #000; line-height: 1.3;
    margin-bottom: 6px;
}
.tools_content p {
    font-size: 16px; color: #6b7280;
    line-height: 1.5; margin: 0;
}

/* Banner CTA — matches v2 */
.banner {
    padding: 160px 0; background: #f5f5f5;
    text-align: center; position: relative;
    background-image: radial-gradient(circle, #d5d5d5 1px, transparent 1px);
    background-size: 24px 24px;
}
.banner__title {
    font-family: var(--font-heading); font-size: 56px;
    font-weight: 800; letter-spacing: -0.04em;
    line-height: 1.15; color: #000;
    max-width: 820px; margin: 0 auto 40px;
}
.banner__action {
    display: flex; justify-content: center;
}
.banner__action .btn--dark {
    border-radius: 0;
}




/* Contact — matches v2 */
.contact {
    padding: 100px 0 200px; background: #fff;
}
.contact__inner {
    max-width: 620px; margin: 0 auto;
}
.contact .section_title_container {
    margin-bottom: 32px;
}
.contact .section_title_container.text-center {
    text-align: center;
}
.contact .section_title_container p {
    font-size: 16px; letter-spacing: 0.056em;
    padding-bottom: 17px; border-bottom: 1px dashed #dedede;
    text-transform: uppercase; color: #1f1f1f; margin-bottom: 0;
}
.contact .section_title_container h2 {
    padding-top: 22px; font-family: var(--font-heading);
    font-weight: 800; letter-spacing: -0.04em;
    font-size: 48px; line-height: 1.15; color: #000;
}
.contact_form_container {
    width: 100%;
}
.contact_input {
    display: block; width: 100%; outline: none; border: none;
    height: 69px; background: #f5f5f5; padding: 0 32px;
    margin-bottom: 8px; font-family: var(--font-body);
    font-size: 18px; color: #1f1f1f;
}
.contact_input::placeholder,
.contact_textarea::placeholder {
    font-size: 18px; font-weight: 400;
    color: rgba(31,31,31,0.5);
}
.contact_textarea {
    display: block; width: 100%; outline: none; border: none;
    height: 144px; background: #f5f5f5; padding: 20px 32px;
    font-family: var(--font-body); font-size: 18px;
    color: #1f1f1f; resize: vertical;
}
.contact_button {
    display: block; width: 100%; border: none; outline: none;
    background: #1f1f1f; color: #fff; margin-top: 8px;
    height: 56px; font-family: var(--font-body);
    font-size: 18px; font-weight: 500; cursor: pointer;
    clip-path: polygon(
        0px 0px, 100% 0px,
        100% calc(100% - 12px), calc(100% - 6px) calc(100% - 12px),
        calc(100% - 6px) calc(100% - 6px), calc(100% - 12px) calc(100% - 6px),
        calc(100% - 12px) 100%, 12px 100%,
        12px calc(100% - 6px), 6px calc(100% - 6px),
        6px calc(100% - 12px), 0% calc(100% - 12px));
    transition: background 0.3s ease;
}
.contact_button:hover {
    background: #2a2a2a;
}
.form-status {
    text-align: center; margin-top: 12px; font-size: 16px;
}

/* Footer — matches Figma v2 */
.site-footer {
    position: relative;
    background: url('../images/Gradient.png') center/cover no-repeat;
    padding: 0;
}
.site-footer .container {
    position: relative; z-index: 1;
}
.scroll_top {
    position: absolute; right: 8px; top: -22px;
    width: 44px; height: 44px; background: #1f1f1f;
    display: flex; align-items: center; justify-content: center;
    z-index: 10;
}
.scroll_top a {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 100%;
}
.scroll_top:hover { opacity: 0.7; }
.scroll_top img {
    width: 20px; height: 12px;
}

.footer_content {
    max-width: 525px; margin: 0 auto;
    padding: 50px 0 64px;
}
.footer_content.text-center { text-align: center; }
.footer_content h2 {
    font-family: var(--font-heading); font-size: 64px;
    font-weight: 800; letter-spacing: -0.06em;
    text-transform: uppercase; color: #000; line-height: 1.1;
}
.footer_content p {
    margin-top: 12px; font-size: 18px; color: #1f1f1f;
}
.social_container {
    margin-top: 24px;
}
.social_container ul {
    display: flex; align-items: center; justify-content: center;
    gap: 8px; list-style: none;
}
.social_container ul li a {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; background: #1f1f1f;
    color: #fff; transition: opacity 0.2s ease;
}
.social_container ul li a:hover { opacity: 0.7; }
.social_container ul li a svg { width: 18px; height: 18px; }

.footer_bottom {
    border-top: 1px solid rgba(31,31,31,0.1);
}
.footer_bottom ul {
    display: flex; align-items: center; justify-content: space-between;
    height: 79px; list-style: none;
}
.footer_bottom ul li {
    font-size: 16px; color: rgba(31,31,31,0.67);
}
.footer_bottom ul li a {
    color: rgba(31,31,31,0.67); transition: color 0.2s ease;
}
.footer_bottom ul li a:hover { color: #1f1f1f; }
.footer_bottom .sep {
    margin: 0 5px; color: rgba(31,31,31,0.67);
}

/* Static Pages — Privacy Policy, Terms */
.static-page {
    padding: calc(var(--header-height) + 60px) 0 100px;
    background: #fff; min-height: 100vh;
}
.static-page__content {
    max-width: 780px; margin: 0 auto;
}
.static-page__content h1 {
    font-family: var(--font-heading); font-size: 48px;
    font-weight: 800; letter-spacing: -0.04em;
    color: #000; margin-bottom: 8px;
}
.static-page__updated {
    font-size: 16px; color: rgba(31,31,31,0.5);
    margin-bottom: 48px;
}
.static-page__content h2 {
    font-family: var(--font-heading); font-size: 24px;
    font-weight: 700; color: #000;
    margin-top: 40px; margin-bottom: 16px;
}
.static-page__content h3 {
    font-size: 20px; font-weight: 600; color: #1f1f1f;
    margin-top: 24px; margin-bottom: 12px;
}
.static-page__content p {
    font-size: 17px; line-height: 1.7;
    color: #333; margin-bottom: 16px;
}
.static-page__content ul {
    margin: 0 0 16px 24px; padding: 0;
}
.static-page__content ul li {
    font-size: 17px; line-height: 1.7; color: #333;
    margin-bottom: 6px; list-style: disc;
}
.static-page__content a {
    color: #1f1f1f; text-decoration: underline;
}
.static-page__content a:hover { color: #000; }

/* Responsive */

/* ---- Tablet (max 1024px) ---- */
@media (max-width: 1024px) {
    /* Header */
    .header__inner { padding: 0 20px; }
    .nav { gap: 20px; }
    .nav__list { gap: 20px; }
    .nav__link { font-size: 16px; }
    .nav__cta { font-size: 16px; padding: 0 20px; height: 40px; line-height: 40px; }

    /* Hero */
    .hero { height: auto; min-height: 100vh; }
    .hero__title { font-size: 42px; line-height: 46px; }
    .hero__subtitle { font-size: 16px; }

    /* Integrations */
    .integrations { padding: 80px 0; min-height: auto; }
    .integrations .section_title_container h2 { font-size: 36px; }
    .brands_item { height: 100px; min-width: 160px; }

    /* Features */
    .features { padding: 80px 0; }
    .features .section_title_container h2 { font-size: 36px; }
    .features__intro { flex-direction: column; align-items: flex-start; }
    .features__grid { grid-template-columns: 1fr; }
    .feature-card__image { height: 260px; }

    /* Tools / How It Works */
    .tools { padding: 80px 0; }
    .tools .section_title_container h2 { font-size: 36px; }
    .tools_container { grid-template-columns: 1fr; }
    .tools_item { width: 100%; }

    /* Banner */
    .banner { padding: 100px 0; }
    .banner__title { font-size: 40px; }

    /* Contact */
    .contact { padding: 80px 0 140px; }
    .contact .section_title_container h2 { font-size: 36px; }

    /* Footer */
    .footer_content h2 { font-size: 48px; }
}

/* ---- Mobile (max 768px) ---- */
@media (max-width: 768px) {
    /* Header */
    .site-header { height: 72px; }
    .nav__list { display: none; }
    .nav__toggle { display: block; }
    .nav__cta { display: none; }
    .lang-switcher { display: none; }

    /* Hero */
    .hero__content { padding: 40px 16px 0; }
    .hero__title { font-size: 32px; line-height: 36px; }
    .hero__subtitle { font-size: 15px; margin-bottom: 24px; }
    .hero__actions { flex-direction: column; gap: 10px; }
    .hero .btn--primary,
    .hero .btn--outline { width: 100%; text-align: center; justify-content: center; }

    /* Integrations */
    .integrations { padding: 60px 0; }
    .integrations .section_title_container { margin-bottom: 32px; }
    .integrations .section_title_container h2 { font-size: 28px; }
    .brands_item { height: 80px; min-width: 140px; }
    .brands_item img { max-width: 90px; max-height: 30px; }

    /* Features */
    .features { padding: 60px 0; }
    .features .section_title_container h2 { font-size: 28px; }
    .features__intro { margin-bottom: 32px; gap: 16px; }
    .features__intro p { font-size: 16px; }
    .feature-card__image { height: 220px; }
    .feature-card__title { font-size: 20px; padding: 8px 20px 0; }
    .feature-card__label { padding: 16px 20px 0; font-size: 12px; }
    .feature-card__text { font-size: 14px; padding: 8px 20px 20px; }

    /* Tools / How It Works */
    .tools { padding: 60px 0; }
    .tools .section_title_container h2 { font-size: 28px; }
    .tools_item { padding: 24px; }
    .tools_number { font-size: 36px; }
    .tools_content h3 { font-size: 16px; }
    .tools_content p { font-size: 14px; }

    /* Banner */
    .banner { padding: 80px 0; }
    .banner__title { font-size: 28px; padding: 0 16px; }

    /* Contact */
    .contact { padding: 60px 0 100px; }
    .contact .section_title_container h2 { font-size: 28px; }
    .contact__inner { padding: 0 8px; }
    .contact_input { height: 56px; padding: 0 20px; font-size: 16px; }
    .contact_textarea { height: 120px; padding: 16px 20px; font-size: 16px; }
    .contact_input::placeholder,
    .contact_textarea::placeholder { font-size: 16px; }
    .contact_button { height: 48px; font-size: 16px; }


    /* Footer */
    .footer_content { padding: 40px 0 48px; }
    .footer_content h2 { font-size: 36px; }
    .footer_content p { font-size: 16px; }
    .footer_bottom ul {
        flex-direction: column; height: auto;
        padding: 20px 0; gap: 8px; text-align: center;
    }
    .footer_bottom ul li { font-size: 14px; }
    .scroll_top { right: 4px; }


    /* Static pages */
    .static-page { padding: calc(var(--header-height) + 40px) 0 60px; }
    .static-page__content h1 { font-size: 32px; }
    .static-page__content h2 { font-size: 20px; }
    .static-page__content p,
    .static-page__content ul li { font-size: 15px; }
}

/* ---- Small Mobile (max 480px) ---- */
@media (max-width: 480px) {
    .header__inner { padding: 0 16px; }
    .site-logo img { height: 26px; }

    .hero__title { font-size: 26px; line-height: 30px; }
    .hero__subtitle { font-size: 14px; }

    .integrations .section_title_container h2 { font-size: 22px; }
    .brands_item { height: 70px; min-width: 120px; }
    .brands_item img { max-width: 70px; max-height: 24px; }

    .features .section_title_container h2 { font-size: 22px; }
    .feature-card__image { height: 180px; }

    .tools .section_title_container h2 { font-size: 22px; }
    .tools_number { font-size: 28px; }

    .banner__title { font-size: 22px; }
    .banner { padding: 60px 0; }

    .contact .section_title_container h2 { font-size: 22px; }
    .contact_input { height: 48px; padding: 0 16px; }
    .contact_textarea { height: 100px; padding: 12px 16px; }

    .footer_content h2 { font-size: 28px; }
    .footer_content p { font-size: 14px; }

    .static-page__content h1 { font-size: 26px; }
    .static-page__content h2 { font-size: 18px; margin-top: 28px; }
    .static-page__content p,
    .static-page__content ul li { font-size: 14px; }
    .static-page__content ul { margin-left: 16px; }
}

/* Mobile Nav */
.nav--mobile { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.95); z-index: calc(var(--z-header) + 1); flex-direction: column; align-items: center; justify-content: center; gap: var(--space-8); }
.nav--mobile.open { display: flex; }
.nav--mobile a { font-size: var(--text-2xl); color: var(--color-white); font-weight: 600; }
