/* ============================================================
   Perforated LLC — stylesheet
   ============================================================ */

/* ---------- tokens ---------- */
:root {
    --bg:          #0b0b12;
    --bg-subtle:   #10101a;
    --surface:     #14141f;
    --surface-2:   #1c1c2c;
    --border:      rgba(255,255,255,0.08);
    --border-hover:rgba(255,255,255,0.16);
    --accent:      #7c6af7;
    --accent-dim:  rgba(124, 106, 247, 0.15);
    --accent-glow: rgba(124, 106, 247, 0.35);
    --text:        #e8e8f2;
    --text-muted:  #8888a8;
    --text-faint:  #44445a;
    --radius:      12px;
    --radius-sm:   8px;
    --shadow:      0 4px 24px rgba(0,0,0,0.4);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font: inherit; border: none; background: none; }

/* ---------- typography ---------- */
h1, h2, h3 {
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #fff;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 600; }

h1 em { font-style: normal; color: var(--accent); }

p { color: var(--text-muted); }

/* ---------- layout ---------- */
.container {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

section { padding: 80px 0; }

.section-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}

.section-sub {
    font-size: 1.1rem;
    margin-top: 12px;
    max-width: 540px;
}

/* ---------- buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 0 0 0 var(--accent-glow);
}
.btn-primary:hover {
    background: #8f7ef9;
    box-shadow: 0 0 20px var(--accent-glow);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border-hover);
}
.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-1px);
}

/* ---------- perforation divider ---------- */
.perf-divider {
    height: 24px;
    width: 100%;
    /* row of punched dots — radial-gradient tiles a circle every 20px */
    background-image: radial-gradient(
        circle,
        var(--bg-subtle) 4px,
        transparent 4px
    );
    background-size: 20px 24px;
    background-position: center;
    background-color: transparent;
    pointer-events: none;
}

.perf-divider-top {
    /* flip it visually for the footer */
    background-color: transparent;
}

/* ---------- dot grid background ---------- */
.dot-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(
        circle,
        rgba(255,255,255,0.06) 1px,
        transparent 1px
    );
    background-size: 28px 28px;
    pointer-events: none;
    z-index: 0;
    /* fade out towards bottom */
    -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
}

/* ============================================================
   NAV
   ============================================================ */
#site-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 0;
    transition: background 0.3s ease, border-color 0.3s ease;
}

#site-nav.scrolled {
    background: rgba(11,11,18,0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}

.logo-mark { color: var(--accent); flex-shrink: 0; }

.logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* Nav links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-links a {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.2s;
}
.nav-links a:hover { color: #fff; }

/* Hamburger */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}
.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.25s ease;
}

/* Mobile nav open state */
#site-nav.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: rgba(11,11,18,0.97);
    backdrop-filter: blur(16px);
    padding: 20px 24px 28px;
    border-bottom: 1px solid var(--border);
    gap: 20px;
    align-items: flex-start;
}

#site-nav.nav-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#site-nav.nav-open .menu-toggle span:nth-child(2) { opacity: 0; }
#site-nav.nav-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    padding: 160px 0 0;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding-bottom: 80px;
    max-width: 640px;
}

.hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-dim);
    border: 1px solid rgba(124,106,247,0.3);
    color: var(--accent);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 28px;
}

.hero h1 { margin-bottom: 20px; }

.hero-sub {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 480px;
    margin-bottom: 36px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ============================================================
   ABOUT
   ============================================================ */
.about { background: var(--bg-subtle); }

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
    margin-top: 40px;
}

.about-copy h2 { margin-bottom: 20px; }
.about-copy p { margin-bottom: 16px; font-size: 1.05rem; }
.about-copy p:last-child { margin-bottom: 0; }

.about-pillars {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.pillar {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 14px;
    row-gap: 4px;
    align-items: center;
}

.pillar-icon {
    grid-row: 1 / 3;
    width: 44px;
    height: 44px;
    background: var(--accent-dim);
    border: 1px solid rgba(124,106,247,0.2);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}

.pillar h3 { color: #fff; }
.pillar p  { font-size: 0.9rem; color: var(--text-muted); }

/* ============================================================
   APPS
   ============================================================ */
.apps { background: var(--bg); }
.apps h2 { margin-bottom: 8px; }

.apps-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-top: 44px;
    align-items: start;
}

/* App card */
.app-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.app-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow);
}

.app-card.featured {
    border-color: rgba(124,106,247,0.2);
    background: linear-gradient(135deg, var(--surface) 0%, rgba(124,106,247,0.04) 100%);
}
.app-card.featured:hover {
    border-color: rgba(124,106,247,0.4);
    box-shadow: 0 8px 40px rgba(124,106,247,0.12);
}

.app-card-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.app-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    overflow: hidden;
}

.app-meta { display: flex; flex-direction: column; gap: 8px; }
.app-meta h3 { font-size: 1.3rem; color: #fff; }

.app-badges { display: flex; flex-wrap: wrap; gap: 6px; }

.badge {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 3px 9px;
    border-radius: 100px;
}

.badge-beta {
    background: rgba(255,176,0,0.15);
    color: #f5b800;
    border: 1px solid rgba(255,176,0,0.3);
}

.badge-platform {
    background: var(--surface-2);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.app-tagline {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
}

.app-desc {
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.app-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 28px;
}

.app-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.app-features li svg { color: var(--accent); flex-shrink: 0; }

.app-cta { align-self: flex-start; }

/* "Soon" card */
.app-card-soon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    min-height: 200px;
    border-style: dashed;
    border-color: var(--text-faint);
    background: transparent;
}

.app-card-soon:hover {
    border-color: var(--border-hover);
    box-shadow: none;
}

.soon-dots {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 8px;
}
.soon-dots span {
    width: 10px;
    height: 10px;
    background: var(--text-faint);
    border-radius: 50%;
    animation: pulse-dot 1.8s ease-in-out infinite;
}
.soon-dots span:nth-child(2) { animation-delay: 0.15s; }
.soon-dots span:nth-child(3) { animation-delay: 0.3s; }
.soon-dots span:nth-child(4) { animation-delay: 0.45s; }
.soon-dots span:nth-child(5) { animation-delay: 0.6s; }
.soon-dots span:nth-child(6) { animation-delay: 0.75s; }
.soon-dots span:nth-child(7) { animation-delay: 0.9s; }
.soon-dots span:nth-child(8) { animation-delay: 1.05s; }
.soon-dots span:nth-child(9) { animation-delay: 1.2s; }

@keyframes pulse-dot {
    0%, 80%, 100% { opacity: 0.2; transform: scale(0.85); }
    40% { opacity: 0.7; transform: scale(1); }
}

.app-card-soon p {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-faint);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--bg-subtle); }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 64px;
    align-items: start;
    margin-top: 40px;
}

.contact-copy h2 { margin-bottom: 16px; }
.contact-copy p  { margin-bottom: 24px; font-size: 1.05rem; }

.contact-email {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--accent);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
    padding-bottom: 2px;
}
.contact-email:hover { border-color: var(--accent); }

/* Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.form-group label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
}

.form-group input,
.form-group textarea {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font: inherit;
    font-size: 0.95rem;
    padding: 12px 16px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    resize: vertical;
}

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

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
}

.form-success {
    color: #4ade80;
    font-size: 0.9rem;
}

.form-error {
    color: #f87171;
    font-size: 0.9rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--bg);
    padding-bottom: 40px;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 40px;
}

.footer-logo .logo-mark { color: var(--text-faint); }
.footer-logo .logo-text { color: var(--text-muted); font-size: 1rem; }

.footer-copy {
    font-size: 0.85rem;
    color: var(--text-faint);
}

.footer-nav {
    display: flex;
    gap: 24px;
}
.footer-nav a {
    font-size: 0.85rem;
    color: var(--text-faint);
    transition: color 0.2s;
}
.footer-nav a:hover { color: var(--text-muted); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    section { padding: 60px 0; }

    /* Nav */
    .nav-links { display: none; }
    .menu-toggle { display: flex; }

    /* Hero */
    .hero { padding-top: 110px; }

    /* About */
    .about-grid { grid-template-columns: 1fr; gap: 44px; }

    /* Apps */
    .apps-grid { grid-template-columns: 1fr; }
    .app-card-soon { min-height: 140px; }

    /* Contact */
    .contact-grid { grid-template-columns: 1fr; gap: 36px; }

    /* Footer */
    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2.2rem; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; justify-content: center; }
}
