/* === Reset / base === */
*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --bg: #fbfbff;
    --bg-soft: #f4f1fb;
    --bg-cta: #efeaff;
    --ink: #0f1024;
    --ink-soft: #1d1d3c;
    --muted: #6b6f80;
    --muted-2: #8a8da3;
    --line: #ebe7f3;
    --line-2: #e2dcef;
    --primary: #6f49f7;
    --primary-2: #7c4dff;
    --primary-3: #5a36e6;
    --primary-soft: #a78bfa;
    --primary-tint: #ede7ff;
    --accent: #6f49f7;
    --slack-bg: #1a103a;
    --slack-aside: #2a1855;
    --slack-active: #6f49f7;
    --testimonial-bg: #15163a;
    --testimonial-bg-2: #0e0e2a;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    background: var(--bg);
    color: var(--ink);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.01em;
}

button,
a {
    font: inherit;
    color: inherit;
}

a {
    text-decoration: none;
}

button {
    border: 0;
    background: transparent;
    cursor: pointer;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.container {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 32px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* === Brand / Header === */
.site-header {
    position: relative;
    background: var(--bg);
    padding: 22px 0;
}

.nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ink);
}

.brand-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.brand-name {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.brand-dot {
    color: var(--ink);
    font-weight: 700;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
    margin-left: auto;
    margin-right: auto;
    transform: translateX(-30px);
}

.nav-links a {
    color: #2c2e44;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.15s ease;
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav-login {
    color: #2c2e44;
    font-size: 15px;
    font-weight: 500;
    padding: 8px 4px;
}

.nav-login:hover {
    color: var(--primary);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
    line-height: 1;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    padding: 11px 22px;
    box-shadow: 0 6px 16px -6px rgba(111, 73, 247, 0.5);
}

.btn-primary:hover {
    background: var(--primary-3);
    transform: translateY(-1px);
    box-shadow: 0 10px 22px -8px rgba(111, 73, 247, 0.55);
}

.btn-lg {
    padding: 16px 28px;
    font-size: 16px;
    border-radius: 12px;
}

.btn-slack {
    width: 18px;
    height: 18px;
}

.btn-arrow {
    width: 18px;
    height: 18px;
}

/* === Hero === */
.hero {
    padding: 24px 0 56px;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
    gap: 24px;
    align-items: start;
    padding-top: 18px;
}

.hero-text {
    max-width: 480px;
    padding-top: 26px;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    padding: 7px 16px 7px 12px;
    font-size: 13px;
    color: #3b3c52;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(15, 16, 36, 0.04);
}

.pill-icon {
    width: 16px;
    height: 16px;
}

.pill-dot {
    color: var(--primary);
    font-weight: 700;
    margin: 0 -2px;
}

.hero-title {
    margin: 22px 0 18px;
    font-size: 44px;
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--ink);
}

.accent {
    color: var(--primary);
}

.hero-sub {
    margin: 0 0 32px;
    font-size: 16px;
    line-height: 1.55;
    color: #4d5066;
    max-width: 380px;
}

.mini {
    margin: 12px 0 0;
    color: var(--muted-2);
    font-size: 13px;
}

/* Hero illustration */
.hero-art {
    position: relative;
    width: 100%;
    display: block;
}

.hero-illustration {
    display: block;
    width: 100%;
    height: auto;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

/* Newsletter cards */
.card {
    position: absolute;
    z-index: 3;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px 12px;
    box-shadow: 0 6px 18px -8px rgba(15, 16, 36, 0.12);
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 130px;
}

.card-title {
    font-size: 12px;
    font-weight: 700;
    color: #2a2d44;
    line-height: 1;
}

.card-title.a16z {
    color: #ff6a3d;
    letter-spacing: -0.02em;
}

.card-title.a16z .num {
    color: #ff6a3d;
}

.card-line {
    display: block;
    height: 2px;
    background: #efecf7;
    border-radius: 2px;
    margin: 2px 0;
}

.card-sub {
    font-size: 10.5px;
    color: #6f7186;
    line-height: 1.35;
    font-weight: 500;
}

.card-sub.center {
    text-align: center;
}

.card-1 { top: 6px; left: 30px; }
.card-2 { top: 84px; left: 4px; }
.card-3 { top: 170px; left: 64px; }
.card-4 { top: 258px; left: 12px; }
.card-5 {
    top: 360px;
    left: 70px;
    width: 105px;
    padding: 12px 10px;
    align-items: center;
    justify-content: center;
}

/* Loom (in middle) */
.annotation {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-20%);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 500;
    font-style: italic;
    z-index: 4;
}

.annot-text {
    white-space: nowrap;
}

.annot-arrow {
    width: 50px;
    height: 40px;
    margin-left: 8px;
}

/* Slack mock */
.slack-mock {
    position: absolute;
    z-index: 5;
    top: 86px;
    right: 0;
    width: 350px;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 18px 40px -16px rgba(15, 16, 36, 0.22);
    display: grid;
    grid-template-columns: 90px 1fr;
    border: 1px solid var(--line-2);
}

.slack-sidebar {
    background: linear-gradient(180deg, #251552 0%, #1a103a 100%);
    color: #d6c9ff;
    padding: 14px 10px;
}

.ws {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    margin-bottom: 12px;
}

.ws-icon {
    width: 22px;
    height: 22px;
    background: #fff;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3px;
}

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

.ws-name {
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
}

.ch-label {
    font-size: 10px;
    text-transform: lowercase;
    color: #9b8cd6;
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}

.ch-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 11px;
    color: #c5b9ee;
}

.ch-list li {
    padding: 3px 6px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.ch-list li.active {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
}

.ch-list .hash {
    opacity: 0.7;
}

.slack-main {
    background: #fff;
    padding: 12px 14px 14px;
}

.ch-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 1px solid #efecf3;
}

.ch-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
}

.ch-title .hash {
    color: #9aa0b3;
    margin-right: 2px;
}

.today {
    font-size: 10px;
    color: #6f7186;
    border: 1px solid #e7e3ef;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 500;
}

.today .caret {
    margin-left: 2px;
    font-size: 8px;
}

.msg {
    padding-top: 10px;
    position: relative;
}

.msg-head {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    font-size: 11px;
}

.msg-icon {
    width: 16px;
    height: 16px;
    background: #ede7ff;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
}

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

.msg-name {
    font-weight: 700;
    color: var(--ink);
    font-size: 11px;
}

.msg-tag {
    font-size: 8px;
    background: #ebe7f3;
    color: #6f7186;
    padding: 1px 4px;
    border-radius: 3px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.msg-time {
    color: #9aa0b3;
    font-size: 10px;
    margin-left: auto;
}

.msg-body {
    background: #fff;
    border-left: 3px solid var(--primary-soft);
    padding: 4px 0 4px 10px;
}

.brief-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--ink);
    display: block;
    margin-bottom: 8px;
}

.brief-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
}

.brief-list li {
    display: flex;
    gap: 4px;
    font-size: 11px;
    color: #2c2e44;
    line-height: 1.35;
}

.brief-bullet {
    color: var(--primary);
    font-weight: 700;
    flex-shrink: 0;
}

.brief-list strong {
    font-weight: 700;
    color: var(--ink);
}

.brief-detail {
    color: #545674;
    font-size: 10.5px;
    font-weight: 500;
}

.brief-cta {
    display: inline-block;
    background: #fff;
    border: 1px solid var(--line-2);
    color: var(--ink);
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 10.5px;
    font-weight: 600;
}

.reaction {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f4f1fb;
    border: 1px solid var(--line-2);
    border-radius: 12px;
    padding: 2px 8px 2px 6px;
    font-size: 10px;
    color: #2c2e44;
    margin-top: 8px;
}

/* Hero caption */
.hero-caption {
    margin: 36px auto 0;
    text-align: center;
    color: #4d5066;
    font-size: 15px;
}

.link-purple {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 3px;
    font-weight: 500;
}

/* === How it works === */
.how-section {
    background: var(--bg-soft);
    padding: 80px 0 88px;
}

.section-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 56px;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.steps {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: start;
    gap: 0;
    max-width: 880px;
    margin: 0 auto;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 24px;
}

.step-icon {
    width: 76px;
    height: 76px;
    background: #fff;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    box-shadow: 0 8px 24px -10px rgba(15, 16, 36, 0.12);
    border: 1px solid var(--line);
}

.step-icon svg {
    width: 44px;
    height: 44px;
}

.step-img {
    width: 84px;
    height: 84px;
    object-fit: contain;
    transform: scale(1.05);
    transform-origin: center;
}

.step-icon-doc {
    background: linear-gradient(180deg, #fff 0%, #f6f3ff 100%);
    overflow: hidden;
}

.step h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--ink);
}

.step p {
    font-size: 14px;
    color: #545674;
    line-height: 1.5;
    margin: 0;
    max-width: 200px;
}

.connector {
    width: 88px;
    height: 50px;
    margin-top: 20px;
}

/* === Testimonial === */
.testimonial-section {
    padding: 56px 0 56px;
    background: var(--bg);
}

.testimonial-card {
    background: linear-gradient(135deg, var(--testimonial-bg) 0%, var(--testimonial-bg-2) 100%);
    border-radius: 22px;
    padding: 56px 64px;
    color: #fff;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 32px;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 80% 50%, rgba(139, 92, 246, 0.16) 0%, transparent 60%);
    pointer-events: none;
}

.quote-block {
    position: relative;
    z-index: 2;
}

.quote-mark {
    width: 32px;
    height: 32px;
    margin-bottom: 16px;
}

.quote-text {
    font-size: 28px;
    line-height: 1.3;
    font-weight: 700;
    margin: 0 0 18px;
    color: #fff;
    letter-spacing: -0.015em;
    max-width: 420px;
}

.accent-light {
    color: var(--primary-soft);
}

.attribution {
    font-size: 14px;
    color: #a3a6c4;
    margin: 0;
    font-weight: 500;
}

/* Testimonial art */
.testimonial-art {
    position: relative;
    height: 280px;
    z-index: 2;
}

.bubble {
    position: absolute;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 8px 14px 8px 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: 12.5px;
    color: #e7e6f5;
    font-weight: 500;
    line-height: 1.35;
    white-space: nowrap;
}

.avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    flex-shrink: 0;
    background: linear-gradient(135deg, #f59e0b, #fb923c);
    border: 2px solid rgba(255, 255, 255, 0.15);
}

.avatar-1 { background: linear-gradient(135deg, #f59e0b, #fb923c); }
.avatar-2 { background: linear-gradient(135deg, #ec4899, #f472b6); }
.avatar-3 { background: linear-gradient(135deg, #6366f1, #8b5cf6); }

.bubble-1 {
    top: 12px;
    right: 14px;
}

.bubble-2 {
    top: 110px;
    right: 0;
}

.bubble-3 {
    top: 200px;
    right: 36px;
}

.slack-orb {
    position: absolute;
    top: 92px;
    left: 36px;
    width: 100px;
    height: 100px;
}

.orb-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(167, 139, 250, 0.5) 0%, rgba(111, 73, 247, 0) 70%);
    filter: blur(8px);
}

.orb-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(167, 139, 250, 0.6);
}

.orb-inner svg {
    width: 32px;
    height: 32px;
}

.orb-trails {
    position: absolute;
    width: 200px;
    height: 200px;
    top: -50px;
    left: -50px;
    pointer-events: none;
}

/* === Features === */
.features-section {
    background: var(--bg);
    padding: 80px 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    max-width: 920px;
    margin: 0 auto;
}

.feature {
    text-align: left;
}

.feature-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 16px;
}

.feature h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--ink);
}

.feature p {
    font-size: 13.5px;
    color: #545674;
    line-height: 1.5;
    margin: 0;
}

/* === CTA section === */
.cta-section {
    padding: 32px 0 64px;
    background: var(--bg);
}

.cta-card {
    background: var(--bg-cta);
    border-radius: 22px;
    padding: 64px 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta-section .section-title {
    margin-bottom: 12px;
}

.cta-sub {
    margin: 0 0 28px;
    color: #4d5066;
    font-size: 15px;
}

.plane-art {
    position: absolute;
    bottom: 16px;
    left: 24px;
    width: 180px;
    height: 180px;
    pointer-events: none;
}

.slack-toast {
    position: absolute;
    top: 50%;
    right: 36px;
    transform: translateY(-50%);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 14px;
    width: 220px;
    box-shadow: 0 12px 28px -12px rgba(15, 16, 36, 0.15);
    text-align: left;
    z-index: 1;
}

.toast-head {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.toast-icon {
    width: 18px;
    height: 18px;
}

.toast-name {
    font-size: 11px;
    font-weight: 700;
    color: var(--ink);
}

.toast-tag {
    font-size: 8px;
    background: #ebe7f3;
    color: #6f7186;
    padding: 1px 4px;
    border-radius: 3px;
    font-weight: 600;
}

.toast-body {
    font-size: 11.5px;
    color: #545674;
    margin: 0;
    line-height: 1.4;
}

.toast-channel {
    color: var(--ink);
    font-weight: 600;
}

.toast-slack {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 18px;
    height: 18px;
}

/* === Footer === */
.site-footer {
    padding: 48px 0 36px;
    background: var(--bg);
    border-top: 1px solid transparent;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr) auto;
    gap: 32px;
    align-items: start;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-tagline {
    margin: 0;
    color: #6f7186;
    font-size: 13px;
}

.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.footer-col h4 {
    font-size: 13px;
    color: var(--ink);
    margin: 0 0 14px;
    font-weight: 700;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-col a {
    font-size: 13px;
    color: #6f7186;
    transition: color 0.15s ease;
}

.footer-col a:hover {
    color: var(--primary);
}

.footer-social {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
}

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

.social {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.social svg {
    width: 22px;
    height: 22px;
}

.footer-social .copy {
    margin: 0;
    font-size: 12px;
    color: #8a8da3;
}

.footer-social {
    flex-direction: row;
    align-items: flex-start;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
}

.footer-social .copy {
    width: 100%;
    text-align: right;
    margin-top: 18px;
}

/* === Mobile menu === */
.hamburger {
    display: none;
    background: transparent;
    padding: 8px;
    cursor: pointer;
    z-index: 60;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    margin: 5px 0;
    transition: transform 0.2s ease;
}

.mobile-menu {
    position: fixed;
    inset: 0;
    background: #fff;
    z-index: 100;
    padding: 22px;
    display: none;
}

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

.mobile-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 28px;
}

.mobile-menu-links a {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
}

.mobile-login {
    text-align: left;
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    padding: 0;
}

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

/* === Reveal === */
.reveal {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* === Responsive === */
@media (max-width: 980px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .hero-art {
        max-width: 580px;
        margin: 0 auto;
    }
    .testimonial-card {
        grid-template-columns: 1fr;
        padding: 40px;
    }
    .testimonial-art {
        height: 220px;
    }
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .footer-social {
        justify-content: flex-start;
    }
    .footer-social .copy {
        text-align: left;
    }
}

@media (max-width: 760px) {
    .nav-links, .nav-actions {
        display: none;
    }
    .hamburger {
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    .hero-title {
        font-size: 36px;
    }
    .hero-art {
        height: 420px;
        transform: scale(0.85);
        transform-origin: top center;
    }
    .steps {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .connector { display: none; }
    .feature-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
    .cta-card {
        padding: 48px 24px;
    }
    .plane-art {
        width: 120px;
        height: 120px;
    }
    .slack-toast {
        position: static;
        transform: none;
        margin: 24px auto 0;
    }
    .footer-cols {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 20px;
    }
}
