/* Home hero */
.hero {
 display: flex;
 flex-direction: column;
 align-items: center;
 text-align: center;
 padding: 4.5rem 1.5rem 1.25rem;
 max-width: var(--max);
 margin: 0 auto;
 min-height: auto;
 justify-content: center;
}

@media (min-width: 768px) {
.hero {
 padding-top: 5.5rem;
 padding-bottom: 1.75rem;
 }
}

.hero-badge {
 display: inline-flex;
 align-items: center;
 gap: 0.65rem;
 padding: 0.4rem 1rem;
 border-radius: var(--radius-full);
 border: 1px solid var(--border-primary);
 background: rgba(17, 22, 31, 0.75);
 backdrop-filter: blur(8px);
 margin-bottom: 1.75rem;
 font-size: 0.65rem;
 text-transform: uppercase;
 letter-spacing: 0.18em;
 color: var(--primary);
 font-weight: 700;
}

.pulse-dot {
 position: relative;
 width: 0.5rem;
 height: 0.5rem;
}

.pulse-dot::before {
 content: "";
 position: absolute;
 inset: 0;
 border-radius: 999px;
 background: var(--primary);
 opacity: 0.75;
 animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.pulse-dot::after {
 content: "";
 position: absolute;
 inset: 0;
 border-radius: 999px;
 background: var(--primary);
}

@keyframes ping {
 75%, 100% {
 transform: scale(2);
 opacity: 0;
 }
}

.hero h1 {
 font-size: clamp(2.5rem, 7vw, 4.75rem);
 font-weight: 600;
 line-height: 1.05;
 letter-spacing: -0.035em;
 color: var(--white);
 margin: 0 0 1.25rem;
}

.hero h1 em {
 font-style: normal;
 color: var(--primary);
 font-weight: 600;
}

.hero-lead {
 max-width: 36rem;
 margin: 0 auto 2rem;
 font-size: clamp(1rem, 2vw, 1.25rem);
 font-weight: 300;
 line-height: 1.65;
 color: var(--text);
}

.hero-cta {
 display: flex;
 flex-wrap: wrap;
 gap: 0.85rem;
 justify-content: center;
 margin-bottom: 2rem;
}

/* Product mock — signature rail frame */
.os-window {
 width: 100%;
 max-width: 80rem;
 margin: 0 auto 3.5rem;
 padding: 0 1rem;
 position: relative;
}

.os-window::before {
 content: "";
 position: absolute;
 left: 8%;
 right: 8%;
 top: -10px;
 height: 2px;
 background: linear-gradient(90deg, transparent, var(--primary), var(--accent), transparent);
 opacity: 0.55;
 pointer-events: none;
}

.os-window img {
 width: 100%;
 height: auto;
 border-radius: 1.5rem;
 box-shadow: var(--shadow-lg);
 border: 1px solid var(--border);
 display: block;
}

@media (max-width: 640px) {
.hero h1 {
 font-size: clamp(2.1rem, 9vw, 2.75rem);
 }
.hero-cta .btn {
 width: 100%;
 }
.pricing-grid {
 gap: 1rem;
 }
.price-amount {
 font-size: 2.5rem;
 }
}

.os-frame {
 background: linear-gradient(to bottom, #1e1e1e, #121212);
 border: 1px solid rgba(255, 255, 255, 0.1);
 border-radius: 2rem;
 padding: 0.5rem;
 box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.7);
}

.os-body {
 display: flex;
 flex-direction: column;
 min-height: 28rem;
 background: #121212;
 border-radius: 1.5rem;
 border: 1px solid rgba(255, 255, 255, 0.05);
 overflow: hidden;
 position: relative;
 box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.8);
}

@media (min-width: 768px) {
.os-body {
 flex-direction: row;
 min-height: 34rem;
 }
}

.os-sidebar {
 display: none;
 width: 15rem;
 flex-shrink: 0;
 border-right: 1px solid rgba(255, 255, 255, 0.05);
 padding: 1rem 0.75rem;
 flex-direction: column;
 gap: 0.25rem;
}

@media (min-width: 768px) {
.os-sidebar {
 display: flex;
 }
}

.os-side-item {
 display: flex;
 align-items: center;
 gap: 0.65rem;
 padding: 0.55rem 0.75rem;
 border-radius: 0.75rem;
 color: var(--text-muted);
 font-size: 0.85rem;
}

.os-side-item.active {
 background: linear-gradient(to bottom, rgba(127, 219, 255, 0.1), transparent);
 border: 1px solid rgba(127, 219, 255, 0.2);
 color: var(--cyan);
 position: relative;
}

.os-side-item.active::before {
 content: "";
 position: absolute;
 left: 0;
 top: 0.4rem;
 bottom: 0.4rem;
 width: 2px;
 background: var(--cyan);
 box-shadow: 0 0 8px var(--cyan);
}

.os-main {
 flex: 1;
 padding: 1.25rem 1.5rem;
 display: grid;
 gap: 1rem;
 grid-template-columns: 1fr;
}

@media (min-width: 900px) {
.os-main {
 grid-template-columns: 1.4fr 1fr;
 }
}

.os-panel {
 background: rgba(255, 255, 255, 0.02);
 border: 1px solid rgba(255, 255, 255, 0.06);
 border-radius: 1rem;
 padding: 1rem;
}

.os-panel h3 {
 margin: 0 0 0.75rem;
 font-size: 0.8rem;
 color: var(--white);
 font-weight: 500;
}

.bars {
 display: flex;
 align-items: flex-end;
 gap: 0.4rem;
 height: 7rem;
}

.bars span {
 flex: 1;
 border-radius: 4px 4px 0 0;
 background: linear-gradient(to top, rgba(110, 200, 255, 0.15), var(--primary));
 animation: barPulse 2.4s ease-in-out infinite;
}

.bars span:nth-child(1) { height: 40%; animation-delay: 0s; }
.bars span:nth-child(2) { height: 70%; animation-delay: 0.15s; }
.bars span:nth-child(3) { height: 55%; animation-delay: 0.3s; }
.bars span:nth-child(4) { height: 90%; animation-delay: 0.45s; }
.bars span:nth-child(5) { height: 65%; animation-delay: 0.6s; }
.bars span:nth-child(6) { height: 80%; animation-delay: 0.75s; }
.bars span:nth-child(7) { height: 45%; animation-delay: 0.9s; }
.bars span:nth-child(8) { height: 75%; animation-delay: 1.05s; }

@keyframes barPulse {
 0%, 100% { filter: brightness(1); }
 50% { filter: brightness(1.25); }
}

.cli {
 font-family: var(--font-mono);
 font-size: 0.72rem;
 line-height: 1.7;
 color: #94a3b8;
 min-height: 8rem;
}

.cli.ok { color: var(--primary); }
.cli.warn { color: var(--accent); }
.cli.cursor {
 display: inline-block;
 width: 0.45rem;
 height: 0.9em;
 background: var(--cyan);
 vertical-align: text-bottom;
 animation: blink 1s step-end infinite;
}

@keyframes blink {
 50% { opacity: 0; }
}

.metric-row {
 display: grid;
 grid-template-columns: repeat(2, 1fr);
 gap: 0.65rem;
}

.metric {
 padding: 0.75rem;
 border-radius: 0.75rem;
 border: 1px solid rgba(255, 255, 255, 0.05);
 background: rgba(0, 0, 0, 0.25);
}

.metric.label {
 font-size: 0.65rem;
 text-transform: uppercase;
 letter-spacing: 0.12em;
 color: var(--text-dim);
}

.metric.val {
 font-size: 1.15rem;
 color: var(--white);
 font-family: var(--font-mono);
 margin-top: 0.25rem;
}

/* Ticker */
.ticker {
 overflow: hidden;
 mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
 -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
 padding-block: 1.5rem;
}

.ticker-label {
 text-align: center;
 font-size: 0.75rem;
 letter-spacing: 0.25em;
 text-transform: uppercase;
 color: var(--text-dim);
 margin-bottom: 1.25rem;
}

.ticker-track {
 display: flex;
 gap: 3rem;
 width: max-content;
 animation: ticker 28s linear infinite;
}

.ticker:hover.ticker-track {
 animation-play-state: paused;
}

.ticker-track span {
 font-family: var(--font-brand);
 font-size: 1.1rem;
 font-weight: 600;
 color: rgba(255, 255, 255, 0.35);
 white-space: nowrap;
}

@keyframes ticker {
 from { transform: translateX(0); }
 to { transform: translateX(-50%); }
}

/* Bento features */
.bento {
 display: grid;
 gap: 1.25rem;
 grid-template-columns: 1fr;
}

@media (min-width: 768px) {
.bento {
 grid-template-columns: repeat(6, 1fr);
 }
.bento.span-3 { grid-column: span 3; }
.bento.span-2 { grid-column: span 2; }
.bento.span-4 { grid-column: span 4; }
}

/* Use cases */
.uc-layout {
 display: grid;
 gap: 1.5rem;
}

@media (min-width: 1024px) {
.uc-layout {
 grid-template-columns: 1.2fr 1fr;
 align-items: stretch;
 }
}

.uc-visual {
 display: none;
 min-height: 22rem;
}

.uc-visual.active {
 display: flex;
 flex-direction: column;
}

.uc-tabs {
 display: grid;
 gap: 0.5rem;
}

.uc-tab {
 padding: 1.15rem 1.25rem;
 border-radius: 1rem 1rem 0 0;
 border-top: 2px solid transparent;
 cursor: pointer;
 transition: all 0.3s;
 background: transparent;
 text-align: left;
}

.uc-tab:hover {
 background: rgba(255, 255, 255, 0.03);
}

.uc-tab.active {
 border-top-color: var(--primary);
 background: rgba(255, 255, 255, 0.03);
 transform: translateY(-2px);
 box-shadow: 0 -10px 20px -10px rgba(110, 200, 255, 0.15);
}

.uc-tab h4 {
 margin: 0 0 0.35rem;
 color: var(--white);
 font-size: 1rem;
}

.uc-tab p {
 margin: 0;
 color: var(--text-dim);
 font-size: 0.85rem;
 line-height: 1.5;
}

/* How it works */
.steps {
 display: grid;
 gap: 1.25rem;
 grid-template-columns: 1fr;
}

@media (min-width: 768px) {
.steps {
 grid-template-columns: repeat(4, 1fr);
 }
}

.step-num {
 font-family: var(--font-mono);
 font-size: 0.75rem;
 color: var(--cyan);
 letter-spacing: 0.15em;
 margin-bottom: 0.75rem;
}

/* Integrations grid */
.integ-grid {
 display: grid;
 gap: 1rem;
 grid-template-columns: 1fr;
}

@media (min-width: 640px) {
.integ-grid {
 grid-template-columns: repeat(2, 1fr);
 }
}

@media (min-width: 1024px) {
.integ-grid {
 grid-template-columns: repeat(3, 1fr);
 }
}

.integ-card {
 cursor: pointer;
 transition: transform 0.3s var(--ease), border-color 0.3s;
}

.integ-card:hover {
 transform: translateY(-6px);
 border-color: var(--border-cyan);
}

.integ-icon {
 width: 2.75rem;
 height: 2.75rem;
 border-radius: 0.85rem;
 display: grid;
 place-items: center;
 background: var(--primary-soft);
 border: 1px solid var(--border-primary);
 color: var(--primary);
 margin-bottom: 1rem;
 font-size: 1.25rem;
}

.integ-card h3 {
 margin: 0 0 0.4rem;
 color: var(--white);
 font-size: 1.05rem;
}

.integ-card p {
 margin: 0;
 color: var(--text-dim);
 font-size: 0.875rem;
 line-height: 1.55;
}

.integ-cat {
 display: inline-block;
 margin-top: 1rem;
 font-size: 0.65rem;
 text-transform: uppercase;
 letter-spacing: 0.14em;
 color: var(--sand);
}

/* Blog */
.blog-grid {
 display: grid;
 gap: 1.5rem;
 grid-template-columns: 1fr;
}

@media (min-width: 768px) {
.blog-grid {
 grid-template-columns: repeat(2, 1fr);
 }
}

@media (min-width: 1100px) {
.blog-grid {
 grid-template-columns: repeat(3, 1fr);
 }
}

.blog-card.thumb {
 height: 10rem;
 border-radius: 1rem;
 margin-bottom: 1.15rem;
 background: linear-gradient(135deg, rgba(110, 200, 255, 0.2), rgba(233, 164, 108, 0.15));
 border: 1px solid var(--border);
 display: grid;
 place-items: center;
 color: var(--cyan);
 font-size: 1.75rem;
}

.blog-meta {
 display: flex;
 gap: 0.75rem;
 flex-wrap: wrap;
 font-size: 0.75rem;
 color: var(--text-dim);
 margin-bottom: 0.65rem;
}

.blog-card h3 {
 margin: 0 0 0.5rem;
 color: var(--white);
 font-size: 1.2rem;
 font-weight: 500;
}

.blog-card p {
 margin: 0;
 color: var(--text-muted);
 font-size: 0.9rem;
 line-height: 1.6;
}

.blog-post-body {
 max-width: 48rem;
 margin: 0 auto;
 line-height: 1.8;
 color: var(--text);
 font-weight: 300;
}

.blog-post-body h2 {
 color: var(--white);
 margin-top: 2.5rem;
 font-weight: 500;
}

.blog-post-body p {
 margin-bottom: 1.25rem;
}

/* Team */
.team-grid {
 display: grid;
 gap: 1.25rem;
 grid-template-columns: 1fr;
}

@media (min-width: 640px) {
.team-grid {
 grid-template-columns: repeat(2, 1fr);
 }
}

@media (min-width: 1024px) {
.team-grid {
 grid-template-columns: repeat(4, 1fr);
 }
}

.avatar {
 width: 3.5rem;
 height: 3.5rem;
 border-radius: 999px;
 display: grid;
 place-items: center;
 font-weight: 600;
 font-size: 0.9rem;
 color: var(--white);
 border: 1px solid var(--border-sand);
 background: linear-gradient(135deg, #1e1e1e, #0a0a0a);
 margin-bottom: 1rem;
}

/* Timeline */
.timeline {
 position: relative;
 max-width: 40rem;
 margin: 0 auto;
 padding-left: 1.5rem;
 border-left: 1px solid var(--border-sand);
}

.timeline-item {
 position: relative;
 padding-bottom: 2rem;
 padding-left: 1.5rem;
}

.timeline-item::before {
 content: "";
 position: absolute;
 left: -1.7rem;
 top: 0.35rem;
 width: 0.65rem;
 height: 0.65rem;
 border-radius: 999px;
 background: var(--cyan);
 box-shadow: 0 0 12px var(--cyan);
}

.timeline-item.year {
 font-family: var(--font-mono);
 font-size: 0.75rem;
 color: var(--sand);
 margin-bottom: 0.35rem;
}

.timeline-item h3 {
 margin: 0 0 0.35rem;
 color: var(--white);
 font-size: 1.1rem;
}

.timeline-item p {
 margin: 0;
 color: var(--text-muted);
 font-size: 0.9rem;
}

/* Stats */
.stats-row {
 display: grid;
 gap: 1rem;
 grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
.stats-row {
 grid-template-columns: repeat(4, 1fr);
 }
}

.stat-card {
 text-align: center;
 padding: 1.75rem 1rem;
}

.stat-card.num {
 font-size: clamp(2rem, 4vw, 2.75rem);
 font-weight: 500;
 color: var(--white);
 font-family: var(--font-brand);
 letter-spacing: -0.03em;
}

.stat-card.label {
 margin-top: 0.35rem;
 font-size: 0.8rem;
 color: var(--text-dim);
}

/* Testimonials */
.t-wrap {
 position: relative;
 max-width: 56rem;
 margin: 0 auto;
}

.t-card {
 display: none;
}

.t-card.active {
 display: block;
}

.t-nav {
 display: flex;
 justify-content: center;
 gap: 0.75rem;
 margin-top: 1.5rem;
}

.t-nav button {
 width: 3rem;
 height: 3rem;
 border-radius: 999px;
 border: 1px solid var(--border);
 background: linear-gradient(to bottom, #1e1e1e, #121212);
 color: var(--text-muted);
 cursor: pointer;
 display: grid;
 place-items: center;
}

.t-nav button:hover {
 color: var(--white);
 border-color: rgba(255, 255, 255, 0.2);
}

/* Compare table */
.compare-wrap {
 overflow-x: auto;
 border: 1px solid var(--border);
 border-radius: var(--radius-lg);
 background: rgba(18, 18, 18, 0.6);
}

.compare-table {
 width: 100%;
 border-collapse: collapse;
 min-width: 40rem;
}

.compare-table th,
.compare-table td {
 padding: 1rem 1.25rem;
 text-align: left;
 border-bottom: 1px solid var(--border);
 font-size: 0.9rem;
}

.compare-table th {
 color: var(--sand);
 font-weight: 500;
 font-size: 0.75rem;
 text-transform: uppercase;
 letter-spacing: 0.12em;
}

.compare-table td {
 color: var(--text-muted);
}

.compare-table td.yes {
 color: var(--cyan);
}

/* Auth */
.auth-shell {
 min-height: 100vh;
 display: grid;
 place-items: center;
 padding: 2rem 1.25rem;
}

.auth-card {
 width: min(26rem, 100%);
}

.auth-card h1 {
 font-size: 1.75rem;
 font-weight: 400;
 color: var(--white);
 margin: 0 0 0.5rem;
}

.auth-card.sub {
 color: var(--text-dim);
 margin-bottom: 1.75rem;
 font-size: 0.95rem;
}

.auth-switch {
 text-align: center;
 margin-top: 1.25rem;
 font-size: 0.875rem;
 color: var(--text-dim);
}

.auth-switch a {
 color: var(--cyan);
}

/* 404 */
.error-page {
 min-height: 80vh;
 display: grid;
 place-items: center;
 text-align: center;
 padding: 2rem;
}

.error-page.code {
 font-size: clamp(5rem, 15vw, 9rem);
 font-weight: 300;
 letter-spacing: -0.06em;
 background: linear-gradient(to bottom, var(--sand), transparent);
 -webkit-background-clip: text;
 background-clip: text;
 color: transparent;
 line-height: 1;
 margin: 0;
}

/* Contact layout */
.contact-grid {
 display: grid;
 gap: 2rem;
}

@media (min-width: 900px) {
.contact-grid {
 grid-template-columns: 1.1fr 0.9fr;
 }
}

.map-placeholder {
 height: 14rem;
 border-radius: var(--radius-lg);
 border: 1px dashed var(--border-sand);
 background:
 linear-gradient(135deg, rgba(110, 200, 255, 0.05), rgba(233, 164, 108, 0.08)),
 repeating-linear-gradient(0deg, transparent, transparent 19px, rgba(255, 255, 255, 0.03) 20px),
 repeating-linear-gradient(90deg, transparent, transparent 19px, rgba(255, 255, 255, 0.03) 20px);
 display: grid;
 place-items: center;
 color: var(--text-dim);
 font-size: 0.875rem;
}

.cta-band {
 text-align: center;
 padding: 5rem 1.5rem;
 position: relative;
}

.cta-band h2 {
 font-size: clamp(2.25rem, 5vw, 3.5rem);
 font-weight: 300;
 color: var(--white);
 margin: 0 0 1rem;
 letter-spacing: -0.03em;
}

.cta-band p {
 color: var(--text-muted);
 max-width: 32rem;
 margin: 0 auto 2rem;
 font-weight: 300;
}

.empty-state {
 text-align: center;
 padding: 3rem 1rem;
 color: var(--text-dim);
}
