@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ───────────────────────────────────────────────
   Design Tokens — Apple-inspired palette
   ─────────────────────────────────────────────── */
:root {
    --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    --color-bg: #ffffff;
    --color-bg-alt: #f5f5f7;
    --color-text: #1d1d1f;
    --color-text-muted: #86868b;
    --color-blue: #0066cc;
    --color-blue-hover: #0077ed;
    --color-border: #e5e5e5;
    --color-border-light: #f0f0f0;

    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-pill: 9999px;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 25px 60px rgba(0, 0, 0, 0.12);

    --max-w: 1120px;
    --max-w-wide: 1280px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    line-height: 1.6;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

/* ───────────────────────────────────────────────
   Animations
   ─────────────────────────────────────────────── */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scroll-left {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.anim-fade-in {
    animation: fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.anim-delay-1 {
    animation-delay: 0.1s;
}

.anim-delay-2 {
    animation-delay: 0.2s;
}

.anim-delay-3 {
    animation-delay: 0.3s;
}

/* ───────────────────────────────────────────────
   Navbar
   ─────────────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border-light);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
}

.navbar-inner {
    max-width: var(--max-w-wide);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    min-height: 96px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.nav-brand img {
    height: 38px;
    width: auto;
    object-fit: contain;
}

.nav-brand span {
    font-weight: 600;
    font-size: 18px;
    color: var(--color-text);
    letter-spacing: -0.3px;
}

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

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    transition: color 0.2s ease;
    white-space: nowrap;
}

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

.nav-links .external-icon {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 3px;
    vertical-align: middle;
    opacity: 0.5;
}

.nav-more-container {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-more-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text);
    display: flex;
    align-items: center;
    padding: 6px;
    border-radius: 6px;
    transition: background 0.2s;
}

.nav-more-toggle:hover {
    background: var(--color-bg-alt);
    color: var(--color-blue);
}

.nav-more-dropdown {
    position: absolute;
    top: 150%;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    padding: 8px 0;
    min-width: 160px;
    display: none;
    flex-direction: column;
    z-index: 1000;
}

.nav-more-dropdown.active {
    display: flex;
}

.nav-more-dropdown a {
    padding: 10px 20px;
    font-size: 14px;
    color: var(--color-text);
    transition: background 0.2s, color 0.2s;
}

.nav-more-dropdown a:hover {
    background: var(--color-bg-alt);
    color: var(--color-blue);
}

.nav-toggle {
    display: none;
    align-items: center;
    cursor: pointer;
    background: none;
    border: none;
    padding: 8px;
    color: var(--color-text);
}

.nav-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    padding: 8px 0;
    z-index: 999;
}

.nav-dropdown a {
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 500;
    color: var(--color-text);
    border-bottom: 1px solid var(--color-border-light);
    transition: color 0.2s, background 0.2s;
}

.nav-dropdown a:last-child {
    border-bottom: none;
}

.nav-dropdown a:hover {
    color: var(--color-blue);
    background: var(--color-bg-alt);
}

/* ───────────────────────────────────────────────
   Hero Section
   ─────────────────────────────────────────────── */
.hero {
    padding: 140px 24px 40px;
    background: var(--color-bg-alt);
    text-align: center;
    overflow: hidden;
}

.hero-inner {
    max-width: var(--max-w);
    margin: 0 auto;
}

.hero h1 {
    font-size: clamp(42px, 7vw, 80px);
    font-weight: 700;
    letter-spacing: -2px;
    line-height: 1.05;
    color: var(--color-text);
    margin-bottom: 24px;
    text-wrap: balance;
}

.hero-subtitle {
    font-size: clamp(18px, 2.5vw, 24px);
    font-weight: 400;
    color: var(--color-text-muted);
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.5;
    text-wrap: balance;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-bottom: 0;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--color-blue);
    color: #ffffff;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 17px;
    padding: 14px 32px;
    border-radius: var(--radius-pill);
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    text-decoration: none;
}

.btn-primary:hover {
    background: var(--color-blue-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 102, 204, 0.3);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #e8e8ed;
    color: var(--color-text);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 17px;
    padding: 14px 32px;
    border-radius: var(--radius-pill);
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
    text-decoration: none;
}

.btn-secondary:hover {
    background: #d1d1d6;
    transform: translateY(-1px);
}

/* Hero Screenshot Gallery */
.hero-gallery {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 56px;
    padding: 0 16px;
}

.hero-gallery-img {
    flex: 1;
    max-width: 380px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(0, 0, 0, 0.06);
    cursor: pointer;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.hero-gallery-img:hover {
    transform: scale(1.03);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15);
}

.hero-gallery-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ───────────────────────────────────────────────
   Intro Block (below hero)
   ─────────────────────────────────────────────── */
.intro-section {
    padding: 48px 24px 80px;
    background: var(--color-bg);
    scroll-margin-top: 120px;
}

.intro-inner {
    max-width: var(--max-w);
    margin: 0 auto;
}

.intro-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
}

.intro-header img {
    height: 64px;
}

.intro-header h2 {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -1.5px;
    color: var(--color-text);
}

.intro-text {
    font-size: 20px;
    color: var(--color-text-muted);
    line-height: 1.65;
    margin-bottom: 20px;
}

/* Full-width app screenshot */
.app-showcase {
    margin-top: 56px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: #1e1e1e;
    box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    cursor: pointer;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.app-showcase:hover {
    transform: scale(1.01);
}

.app-showcase img {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0.92;
    transition: opacity 0.4s ease;
}

.app-showcase:hover img {
    opacity: 1;
}

/* ───────────────────────────────────────────────
   Feature Blocks
   ─────────────────────────────────────────────── */
.features-section {
    padding: 60px 24px 100px;
    background: var(--color-bg-alt);
}

.features-inner {
    max-width: var(--max-w);
    margin: 0 auto;
}

.feature-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.feature-block:last-child {
    margin-bottom: 0;
}

.feature-block.reversed {
    direction: rtl;
}

.feature-block.reversed>* {
    direction: ltr;
}

.feature-text h3 {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.8px;
    color: var(--color-text);
    margin-bottom: 16px;
}

.feature-text p {
    font-size: 17px;
    color: var(--color-text-muted);
    line-height: 1.65;
}

.feature-image {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border-light);
    cursor: pointer;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.feature-image:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-xl);
}

.feature-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Mobile phone mockup within features */
.phone-mockup {
    width: 260px;
    aspect-ratio: 9/19;
    background: #000;
    border: 10px solid #000;
    border-radius: 46px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35), inset 0 0 0 2px #333;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
}

.phone-notch {
    width: 45%;
    max-width: 120px;
    height: 18px;
    background: #000;
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 0 0 16px 16px;
    z-index: 2;
}

.phone-screen {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 36px;
    display: block;
    cursor: pointer;
}

/* ───────────────────────────────────────────────
   Hardware Section
   ─────────────────────────────────────────────── */
.hardware-section {
    padding: 100px 24px;
    background: var(--color-bg);
    scroll-margin-top: 120px;
}

.hardware-inner {
    max-width: var(--max-w);
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header h2 {
    font-size: clamp(36px, 5vw, 52px);
    font-weight: 700;
    letter-spacing: -1.5px;
    color: var(--color-text);
    margin-bottom: 12px;
}

.section-header p {
    font-size: 20px;
    color: var(--color-text-muted);
}

.hardware-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.hardware-card {
    background: var(--color-bg);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.hardware-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.hardware-card-img {
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--color-bg-alt);
}

.hardware-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hardware-card:hover .hardware-card-img img {
    transform: scale(1.05);
}

.hardware-card-body {
    padding: 32px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.hardware-card-body h3 {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--color-text);
    margin-bottom: 12px;
}

.hardware-card-body p {
    font-size: 16px;
    color: var(--color-text-muted);
    line-height: 1.6;
    flex: 1;
}

/* Mold images stack */
.mold-images {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mold-images img {
    width: 100%;
    border-radius: var(--radius-sm);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hardware-card:hover .mold-images img {
    transform: scale(1.03);
}

/* ───────────────────────────────────────────────
   Tools & Accessories Section
   ─────────────────────────────────────────────── */
.tools-section {
    padding: 100px 24px;
    background: var(--color-bg-alt);
    scroll-margin-top: 120px;
}

.tools-inner {
    max-width: var(--max-w);
    margin: 0 auto;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.tool-card {
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.tool-card h4 {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: var(--color-text);
    margin-bottom: 12px;
}

.tool-card p {
    font-size: 16px;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* ───────────────────────────────────────────────
   Marquee
   ─────────────────────────────────────────────── */
.marquee-section {
    background: var(--color-text);
    color: #fff;
    padding: 14px 0;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-track {
    display: inline-block;
    animation: scroll-left 80s linear infinite;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ───────────────────────────────────────────────
   Footer
   ─────────────────────────────────────────────── */
.footer {
    background: var(--color-bg);
    border-top: 1px solid var(--color-border);
    padding: 80px 24px 40px;
}

.footer-inner {
    max-width: var(--max-w-wide);
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand p {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.6;
    max-width: 300px;
    margin-top: 16px;
}

.footer-brand img {
    height: 34px;
    width: auto;
    margin-bottom: 8px;
}

.footer-col h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    font-size: 14px;
    color: var(--color-text-muted);
    transition: color 0.2s ease;
}

.footer-col ul li a:hover {
    color: var(--color-text);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid var(--color-border);
}

.footer-bottom p {
    font-size: 13px;
    color: var(--color-text-muted);
}

.footer-social {
    display: flex;
    gap: 20px;
}

.footer-social a {
    color: var(--color-text-muted);
    transition: color 0.2s ease;
}

.footer-social a:hover {
    color: var(--color-text);
}

.footer-social svg {
    width: 20px;
    height: 20px;
}

/* ───────────────────────────────────────────────
   Subpages (About, Contact, Support)
   ─────────────────────────────────────────────── */
.subpage-main {
    padding: 160px 24px 100px;
    background: var(--color-bg);
    min-height: calc(100vh - 350px);
}

.subpage-inner {
    max-width: 760px;
    margin: 0 auto;
}

.subpage-title {
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 700;
    letter-spacing: -1.5px;
    color: var(--color-text);
    margin-bottom: 24px;
}

.subpage-text {
    font-size: 20px;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 24px;
}

.contact-box {
    margin-top: 40px;
    padding: 40px;
    background: var(--color-bg-alt);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
}

.contact-box p {
    font-size: 18px;
    color: var(--color-text);
    margin-bottom: 12px;
}

.contact-box a {
    color: var(--color-blue);
    font-weight: 500;
}

.support-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 48px;
}

@media (min-width: 640px) {
    .support-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.support-card {
    background: var(--color-bg-alt);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid var(--color-border);
}

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

.support-card p {
    font-size: 16px;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* ───────────────────────────────────────────────
   Lightbox
   ─────────────────────────────────────────────── */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 32px;
    font-size: 36px;
    font-weight: 300;
    color: var(--color-text);
    cursor: pointer;
    z-index: 2001;
    transition: color 0.2s;
    line-height: 1;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
}

.lightbox-close:hover {
    color: var(--color-blue);
    background: rgba(0, 0, 0, 0.1);
}

/* ───────────────────────────────────────────────
   Auth Modal
   ─────────────────────────────────────────────── */
.modal-overlay {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.auth-modal {
    background: var(--color-bg);
    border-radius: var(--radius-xl);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-width: 576px;
    max-height: 95dvh;
    overflow-y: auto;
    padding: 20px 24px 20px;
    position: relative;
    animation: modal-enter 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modal-enter {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    font-weight: 300;
    color: var(--color-text-muted);
    cursor: pointer;
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s, color 0.2s;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.06);
    color: var(--color-text);
}

/* Branded Header */
.modal-brand-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--color-border);
}

.modal-brand-logo {
    height: 32px;
    width: auto;
    flex-shrink: 0;
}

.modal-brand-title {
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: -0.3px;
    line-height: 1.2;
}

/* Tabs */
.auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 10px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.auth-tab {
    flex: 1;
    padding: 8px 16px;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-muted);
    background: var(--color-bg-alt);
    border: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.auth-tab.active {
    background: var(--color-blue);
    color: #fff;
}

.auth-tab:not(.active):hover {
    background: var(--color-border-light);
    color: var(--color-text);
}

/* Error */
.auth-error {
    background: #fef2f2;
    color: #b91c1c;
    font-size: 13px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    border: 1px solid #fecaca;
    line-height: 1.5;
    font-weight: 600;
}

/* Forms */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Form Sections (grouped) */
.form-section {
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 10px 12px;
}

.form-section-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-blue);
    margin-bottom: 8px;
}

.form-section-title svg {
    flex-shrink: 0;
}

/* Form Labels */
.form-label {
    display: block;
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-muted);
    margin-bottom: 3px;
}

.form-label .required {
    color: #ef4444;
}

/* Form Grids */
.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 10px;
}

.form-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px 8px;
    margin-top: 6px;
}

/* Inputs */
.auth-form input {
    font-family: var(--font-sans);
    font-size: 13px;
    padding: 7px 10px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-bg);
    color: var(--color-text);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
    box-sizing: border-box;
}

.auth-form input:focus {
    border-color: var(--color-blue);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.12);
}

.auth-form input::placeholder {
    color: var(--color-text-muted);
    opacity: 0.6;
}

/* Submit Button */
.auth-submit {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 24px;
    background: var(--color-blue);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    margin-top: 2px;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.2);
}

.auth-submit:hover {
    background: var(--color-blue-hover);
    transform: translateY(-1px);
}

.auth-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Forgot Password */
.forgot-password {
    text-align: center;
    font-family: var(--font-sans);
    font-size: 12px;
    color: var(--color-text-muted);
    cursor: pointer;
    margin-top: 4px;
    transition: color 0.2s;
}

.forgot-password:hover {
    color: var(--color-blue);
}

/* Plan Selector */
.plan-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.plan-card {
    position: relative;
    padding: 10px 12px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    text-align: center;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
    background: var(--color-bg);
}

.plan-card:hover {
    border-color: var(--color-blue);
    transform: translateY(-1px);
}

.plan-card.selected {
    border-color: var(--color-blue);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.12);
    background: rgba(0, 102, 204, 0.03);
}

.plan-card-header {
    margin-bottom: 6px;
}

.plan-card-name {
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-muted);
    margin-bottom: 2px;
}

.plan-card.selected .plan-card-name {
    color: var(--color-text);
}

.plan-card-price {
    font-family: var(--font-sans);
    font-size: 20px;
    font-weight: 900;
    color: var(--color-text);
}

/* Plan Badge */
.plan-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-blue);
    color: #fff;
    font-family: var(--font-sans);
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    white-space: nowrap;
}

/* Plan Features */
.plan-features {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 4px;
    font-family: var(--font-sans);
    font-size: 11px;
    color: var(--color-text-muted);
    line-height: 1.3;
    margin-bottom: 3px;
}

.plan-features li:last-child {
    margin-bottom: 0;
}

.plan-features li strong {
    color: var(--color-text);
}

.check-icon {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    margin-top: 1px;
    stroke: var(--color-text-muted);
}

.plan-card.selected .check-icon {
    stroke: var(--color-blue);
}

/* Credits Disclaimer */
.credits-disclaimer {
    font-family: var(--font-sans);
    font-size: 10px;
    font-style: italic;
    color: var(--color-text-muted);
    line-height: 1.4;
    margin-top: 8px;
    opacity: 0.7;
}

/* ───────────────────────────────────────────────
   RESPONSIVE: Tablet
   ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .hero h1 {
        font-size: clamp(36px, 8vw, 60px);
    }

    .hero-gallery {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .hero-gallery-img {
        max-width: 500px;
        width: 100%;
    }

    .feature-block {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .feature-block.reversed {
        direction: ltr;
    }

    .hardware-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

/* ───────────────────────────────────────────────
   RESPONSIVE: Mobile
   ─────────────────────────────────────────────── */
@media (max-width: 640px) {
    .navbar-inner {
        height: 56px;
        min-height: 56px;
        padding: 0 16px;
        flex-wrap: nowrap;
    }

    .nav-brand {
        flex-shrink: 1;
        min-width: 0;
        overflow: hidden;
    }

    .nav-brand img {
        height: 32px;
        max-width: 100%;
    }

    .nav-brand span {
        font-size: 15px;
    }
}

/* Very narrow phones (iPhone SE, Galaxy Fold, etc.) */
@media (max-width: 380px) {
    .navbar-inner {
        height: 50px;
        min-height: 50px;
        padding: 0 12px;
    }

    .nav-brand img {
        height: 26px;
    }

    .nav-brand span {
        font-size: 13px;
    }

    .nav-toggle svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 640px) {
    .hero {
        padding: 100px 16px 48px;
    }

    .hero h1 {
        font-size: 36px;
        letter-spacing: -1px;
    }

    .hero-subtitle {
        font-size: 17px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
        font-size: 16px;
        padding: 14px 24px;
    }

    .hero-gallery-img:nth-child(3) {
        display: none;
    }

    .intro-section {
        padding: 60px 16px;
    }

    .intro-header h2 {
        font-size: 32px;
    }

    .intro-header img {
        height: 42px;
    }

    .intro-text {
        font-size: 17px;
    }

    .features-section {
        padding: 40px 16px 60px;
    }

    .feature-text h3 {
        font-size: 24px;
    }

    .feature-text p {
        font-size: 16px;
    }

    .hardware-section,
    .tools-section {
        padding: 60px 16px;
    }

    .section-header h2 {
        font-size: 32px;
    }

    .hardware-card-body {
        padding: 24px;
    }

    .hardware-card-body h3 {
        font-size: 22px;
    }

    .tool-card {
        padding: 28px 24px;
    }

    .footer {
        padding: 48px 16px 32px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .phone-mockup {
        width: 220px;
    }

    .auth-modal {
        margin: 16px;
        padding: 28px 20px 24px;
        max-height: 85vh;
    }

    .modal-brand-header {
        gap: 10px;
        margin-bottom: 20px;
        padding-bottom: 16px;
    }

    .modal-brand-logo {
        height: 32px;
    }

    .modal-brand-title {
        font-size: 15px;
    }

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

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

    .plan-selector {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .plan-card-price {
        font-size: 20px;
    }
}

/* ───────────────────────────────────────────────
   Utilities
   ─────────────────────────────────────────────── */
.hide-mobile {
    display: block;
}

@media (max-width: 640px) {
    .hide-mobile {
        display: none !important;
    }
}