/*
 * Auracle marketing site — custom styles.
 *
 * All component classes (mono-label, btn-primary, feature-block, etc.)
 * are original to this site. Tailwind utilities (tw-*) supply layout
 * primitives; everything visually distinctive is written from scratch
 * below.
 */

/* ── design tokens ──────────────────────────────────────────────── */
:root {
    --bg: #000;
    --fg: #fff;
    --fg-dim: rgba(255, 255, 255, 0.6);
    --fg-muted: rgba(255, 255, 255, 0.4);
    --line: rgba(255, 255, 255, 0.1);
    --line-strong: rgba(255, 255, 255, 0.2);
    --surface: rgba(255, 255, 255, 0.02);
    --surface-2: rgba(255, 255, 255, 0.04);

    --accent: #10b981;
    --accent-soft: rgba(16, 185, 129, 0.12);
    --warn: #ef4444;

    --mono: ui-monospace, "SF Mono", Menlo, Monaco, "Cascadia Mono",
            "Roboto Mono", Consolas, monospace;
    --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto,
            "Helvetica Neue", Arial, sans-serif;
}

/* ── base ───────────────────────────────────────────────────────── */
* {
    box-sizing: border-box;
}

body {
    font-family: var(--sans);
    font-feature-settings: "kern" 1, "liga" 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.55;
}

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

code {
    font-family: var(--mono);
}

/* ── utility fills (Tailwind utilities that may be absent from the
       compiled build but that the HTML references) ───────────────── */
.tw-bg-emerald-400 { background-color: var(--accent) !important; }
.tw-text-emerald-400 { color: var(--accent) !important; }
.tw-text-red-400 { color: var(--warn) !important; }
.tw-text-white { color: var(--fg) !important; }
.tw-text-white\/70 { color: rgba(255, 255, 255, 0.7) !important; }
.tw-text-white\/60 { color: var(--fg-dim) !important; }
.tw-text-white\/50 { color: rgba(255, 255, 255, 0.5) !important; }
.tw-text-white\/40 { color: var(--fg-muted) !important; }
.tw-text-white\/20 { color: rgba(255, 255, 255, 0.2) !important; }
.tw-bg-white\/\[0\.02\] { background-color: var(--surface) !important; }
.tw-bg-black\/80 { background-color: rgba(0, 0, 0, 0.8) !important; }
.tw-border-white\/10 { border-color: var(--line) !important; }
.tw-tracking-tight { letter-spacing: -0.02em; }
.tw-min-h-\[100vh\] { min-height: 100vh; }
.tw-backdrop-blur { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.hover\:tw-text-white:hover { color: var(--fg) !important; }
.hover\:tw-bg-white\/90:hover { background-color: rgba(255, 255, 255, 0.9) !important; }
.hover\:tw-underline:hover { text-decoration: underline; }

/* ── typography accents ─────────────────────────────────────────── */
.mono-label {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

.mono-inline {
    font-family: var(--mono);
    font-size: 0.88em;
    padding: 1px 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.85);
    word-break: break-word;
}

.mono-feature-num {
    font-family: var(--mono);
    font-size: 36px;
    font-weight: 400;
    color: var(--accent);
    letter-spacing: -0.02em;
    line-height: 1;
    margin: 0 0 6px;
}

.hero-title {
    line-height: 1.05;
}

/* ── buttons ────────────────────────────────────────────────────── */
.btn-primary,
.btn-secondary,
.btn-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--sans);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease,
                color 0.15s ease, transform 0.05s ease;
    white-space: nowrap;
}

.btn-primary {
    padding: 14px 22px;
    font-size: 15px;
    background: var(--fg);
    color: var(--bg);
    border-radius: 999px;
    border: 1px solid var(--fg);
}
.btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
}

.btn-secondary {
    padding: 14px 22px;
    font-size: 15px;
    background: transparent;
    color: var(--fg);
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
}
.btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.04);
}

.btn-pill {
    padding: 8px 16px;
    font-size: 13px;
    background: var(--fg);
    color: var(--bg);
    border-radius: 999px;
    border: 1px solid var(--fg);
}
.btn-pill:hover {
    background: rgba(255, 255, 255, 0.9);
}

/* ── problem cards ──────────────────────────────────────────────── */
.problem-card {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    transition: border-color 0.2s ease, background-color 0.2s ease;
}
.problem-card:hover {
    border-color: var(--line-strong);
    background: var(--surface-2);
}

/* ── feature blocks ─────────────────────────────────────────────── */
.feature-block {
    padding: 56px 0;
    border-bottom: 1px solid var(--line);
}
.feature-block-last {
    border-bottom: none;
}

.feature-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    color: var(--fg-dim);
}
.feature-bullets li {
    position: relative;
    padding-left: 18px;
}
.feature-bullets li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* ── architectural diagram (single focal SVG) ───────────────────── */
.diagram-wrap {
    max-width: 760px;
    margin: 0 auto;
    padding: 8px;
}

/* Subtle breathing-room pulse on the "your hardware" container.
   Stroke opacity oscillates so the container looks alive without
   being distracting. Respects prefers-reduced-motion below. */
.diagram-container {
    animation: diagram-container-pulse 4.5s ease-in-out infinite;
    transform-origin: center;
}

@keyframes diagram-container-pulse {
    0%, 100% {
        stroke-opacity: 0.55;
    }
    50% {
        stroke-opacity: 0.95;
    }
}

@media (prefers-reduced-motion: reduce) {
    .diagram-container { animation: none; }
    .flow-dot { animation: none; }
}

/* ── metric bars ────────────────────────────────────────────────── */
.metric-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.metric-label {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 4px;
}

.metric-bar {
    position: relative;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
}

.metric-bar-fill {
    position: absolute;
    inset: 0;
    height: 100%;
    width: 0;
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0.18;
}

.metric-value {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    padding: 0 14px;
    font-family: var(--mono);
    font-size: 13px;
    color: var(--fg);
}

/* ── terminal mockup ────────────────────────────────────────────── */
.terminal-block {
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    overflow: hidden;
    background: #0a0a0a;
    box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.8),
                0 0 0 1px rgba(255, 255, 255, 0.02);
}

.terminal-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
}

.terminal-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.terminal-title {
    margin-left: auto;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--fg-muted);
}

.terminal-body {
    margin: 0;
    padding: 22px 20px;
    font-family: var(--mono);
    font-size: 13px;
    color: rgba(230, 230, 230, 0.95);
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-all;
    line-height: 1.6;
}

/* ── callouts ───────────────────────────────────────────────────── */
.callout {
    padding: 14px 18px;
    border: 1px solid var(--line);
    border-left: 3px solid var(--accent);
    border-radius: 6px;
    background: var(--accent-soft);
    font-size: 14px;
    line-height: 1.55;
}

/* ── pricing cards ──────────────────────────────────────────────── */
.pricing-card {
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    display: flex;
    flex-direction: column;
}

.pricing-card-featured {
    border-color: var(--accent);
    background: var(--accent-soft);
    box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.25),
                0 24px 64px -32px rgba(16, 185, 129, 0.3);
}

.pricing-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 14px;
    color: var(--fg-dim);
}
.pricing-bullets li {
    position: relative;
    padding-left: 22px;
}
.pricing-bullets li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
    font-weight: 600;
}

/* ── FAQ details / summary ──────────────────────────────────────── */
.faq-item {
    border-bottom: 1px solid var(--line);
    padding: 18px 0;
}
.faq-item:last-child {
    border-bottom: none;
}

.faq-item summary {
    cursor: pointer;
    list-style: none;
    font-size: 17px;
    font-weight: 500;
    color: var(--fg);
    padding-right: 32px;
    position: relative;
    transition: color 0.15s ease;
}
.faq-item summary::-webkit-details-marker {
    display: none;
}
.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: -2px;
    font-family: var(--mono);
    font-size: 22px;
    line-height: 1;
    color: var(--fg-muted);
    transition: transform 0.2s ease, color 0.2s ease;
}
.faq-item[open] summary::after {
    content: "−";
    color: var(--accent);
}
.faq-item summary:hover {
    color: var(--accent);
}

.faq-item p {
    margin-top: 14px;
    color: var(--fg-dim);
    font-size: 15px;
    line-height: 1.65;
}

/* ── small / responsive tweaks ──────────────────────────────────── */
@media (max-width: 768px) {
    .mono-feature-num {
        font-size: 28px;
    }
    .feature-block {
        padding: 36px 0;
    }
}

/* Reduce-motion: kill metric-bar animation for users who request it. */
@media (prefers-reduced-motion: reduce) {
    .metric-bar-fill {
        transition: none;
    }
}
