@import url("https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&family=Geist+Mono:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400&family=JetBrains+Mono:wght@400;700&display=swap");

:root {
    --bg: #0A0E14;
    --bg-card: #0D1117;
    --bg-bar: #161B22;
    --bg-deep: #070A0F;
    --bg-soft-green: #0F1A14;
    --border: #1F2937;
    --border-soft: #1C2128;
    --green: #50FA7B;
    --green-glow: #50FA7B66;
    --cyan: #8BE9FD;
    --pink: #FF79C6;
    --yellow: #FFBD2E;
    --red: #FF5F56;
    --gg: #27C93F;
    --text: #C9D1D9;
    --text-2: #8B949E;
    --text-3: #6E7681;
    --text-4: #3D4452;
    --mono: 'Geist Mono', 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    --code: 'IBM Plex Mono', 'Geist Mono', ui-monospace, monospace;
    --sans: 'Geist', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    --brand: 'JetBrains Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--green); }

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

ul { list-style: none; }

button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }

input, textarea, select { font: inherit; color: inherit; background: transparent; border: 0; outline: none; }

::selection { background: var(--green); color: var(--bg); }

/* layout container */
.tc-container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 120px;
}

@media (max-width: 1100px) { .tc-container { padding: 0 48px; } }
@media (max-width: 720px)  { .tc-container { padding: 0 20px; } }

/* nav */
.tc-nav {
    background: var(--bg);
    border-bottom: 1px solid var(--border-soft);
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(8px);
}
.tc-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    gap: 24px;
}
.tc-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--brand);
    font-weight: 700;
    font-size: 18px;
    color: var(--text);
}
.tc-logo .tld { color: var(--green); }
.tc-logo .cursor {
    width: 10px;
    height: 18px;
    background: var(--green);
    box-shadow: 0 0 8px var(--green-glow);
    animation: tc-blink 1s steps(1) infinite;
}
@keyframes tc-blink { 50% { opacity: 0; } }

/* pixel monster mark */
.pixel-monster {
    display: inline-grid;
    grid-template-columns: repeat(4, 4px);
    grid-auto-rows: 4px;
    gap: 2px;
}
.pixel-monster i { background: var(--bg); display: block; }
.pixel-monster i.g { background: var(--green); }
.pixel-monster i.b { background: #00FF88; }

.tc-nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    font-family: var(--mono);
    font-size: 13px;
    color: var(--text-2);
}
.tc-nav-links a {
    color: var(--text-2);
    position: relative;
}
.tc-nav-links a:hover { color: var(--text); }
.tc-nav-links a::before { content: "// "; color: var(--text-4); }
.tc-nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid var(--green);
    border-radius: 4px;
    color: var(--green) !important;
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 600;
}
.tc-nav-cta::before { content: none; }
.tc-nav-cta:hover {
    background: var(--green);
    color: var(--bg) !important;
    box-shadow: 0 0 16px var(--green-glow);
}

@media (max-width: 720px) {
    .tc-nav-links { display: none; }
}

/* sections */
.tc-section {
    position: relative;
    padding: 64px 0;
    overflow: hidden;
}
.tc-section--pricing { padding-top: 64px; padding-bottom: 64px; }
.tc-section--contact { background: var(--bg-card); padding-top: 96px; padding-bottom: 96px; }

/* section header (terminal style) */
.tc-stag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text-3);
}
.tc-stag .slash { color: var(--text-3); }
.tc-stag .file { color: var(--green); font-weight: 500; }
.tc-stag .file--cyan { color: var(--cyan); }

.tc-sheading {
    display: inline-flex;
    align-items: flex-end;
    gap: 8px;
    margin-top: 8px;
    font-family: var(--mono);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.1;
}
.tc-sheading .cmd { color: var(--green); }
.tc-sheading .obj { color: var(--text); }
.tc-sheading .cursor {
    width: 14px;
    height: 5px;
    background: var(--green);
    margin-bottom: 10px;
    animation: tc-blink 1s steps(1) infinite;
}

.tc-sub {
    margin-top: 8px;
    font-family: var(--sans);
    font-size: 13px;
    color: var(--text-2);
    max-width: 720px;
}

.tc-section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
}
.tc-section-header .tc-sub { text-align: center; }

/* ==== Pricing ==== */
.tc-pricing-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 32px;
}
@media (max-width: 980px) { .tc-pricing-row { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; } }

.tc-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.tc-card--featured {
    border-color: var(--green);
    box-shadow: 0 0 32px #50FA7B40;
}

/* Window bar (mac dots + title) */
.tc-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 14px;
    background: var(--bg-bar);
    border-bottom: 1px solid var(--border);
}
.tc-card--featured .tc-bar { background: var(--bg-soft-green); }
.tc-bar-l {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text-3);
}
.tc-card--featured .tc-bar-l > span { color: var(--text); }
.tc-dots { display: inline-flex; gap: 6px; }
.tc-dots i {
    width: 10px; height: 10px; border-radius: 50%;
    display: inline-block;
}
.tc-dots i:nth-child(1) { background: var(--red); }
.tc-dots i:nth-child(2) { background: var(--yellow); }
.tc-dots i:nth-child(3) { background: var(--gg); }
.tc-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--green);
    color: var(--bg);
    font-family: var(--mono);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.2px;
}

.tc-card-body {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 24px;
    flex: 1;
}

.tc-card-cmd {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--mono);
    font-size: 13px;
    color: var(--text);
}
.tc-card-cmd .prompt { color: var(--green); }
.tc-card-comment {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text-3);
}
.tc-card-price {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.tc-card-price-row {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    font-family: var(--mono);
}
.tc-card-price-row .amount {
    font-size: 44px;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
}
.tc-card--featured .tc-card-price-row .amount { color: var(--green); }
.tc-card-price-row .per {
    font-size: 13px;
    color: var(--text-3);
    padding-bottom: 6px;
}
.tc-card-price-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-3);
}
.tc-card-price-meta .sep { color: var(--text-4); }
.tc-card-price-meta .delta { color: var(--green); }

.tc-divider { height: 1px; background: var(--border); border: 0; }

.tc-feats {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.tc-feats li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--mono);
    font-size: 13px;
    color: var(--text);
}
.tc-feats li::before {
    content: "+";
    color: var(--green);
    font-weight: 700;
}

.tc-save {
    align-self: flex-start;
    padding: 4px 8px;
    border-radius: 4px;
    background: var(--bg);
    border: 1px solid var(--border);
    font-family: var(--mono);
    font-size: 10px;
    color: var(--text-3);
}
.tc-save--mid { background: var(--bg-soft-green); color: var(--green); }
.tc-save--best { background: var(--green); color: var(--bg); border: 0; font-weight: 700; }

.tc-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 4px;
    background: var(--bg);
    border: 1px solid var(--green);
    color: var(--green);
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 600;
    width: 100%;
    transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.tc-cta:hover {
    background: var(--green);
    color: var(--bg);
    box-shadow: 0 0 16px var(--green-glow);
}
.tc-cta--solid {
    background: var(--green);
    color: var(--bg);
    font-weight: 700;
    box-shadow: 0 0 16px #50FA7B80;
}
.tc-cta--solid:hover {
    background: #6EFF93;
    color: var(--bg);
    box-shadow: 0 0 24px #50FA7B80;
}

.tc-footnote {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin-top: 24px;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text-2);
}
.tc-footnote span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.tc-footnote .check {
    color: var(--green);
}

/* decorative pixels & glyphs */
.tc-deco {
    position: absolute;
    pointer-events: none;
}
.tc-deco i {
    position: absolute;
    width: 6px; height: 6px;
    display: block;
}
.tc-deco--tl { top: 80px; left: 80px; }
.tc-deco--tr { top: 80px; right: 80px; }
.tc-deco--bl { bottom: 80px; left: 80px; }
.tc-deco--br { bottom: 80px; right: 80px; }
.tc-deco i.g { background: var(--green); opacity: .4; }
.tc-deco i.g2 { background: var(--green); opacity: .2; }
.tc-deco i.c { background: var(--cyan); opacity: .4; }
.tc-deco i.c2 { background: var(--cyan); opacity: .2; }
.tc-deco-arrow {
    position: absolute;
    font-family: var(--mono);
    font-size: 24px;
    color: var(--green);
    opacity: .4;
}
.tc-deco-cross {
    position: absolute;
    width: 32px; height: 32px;
    color: var(--pink);
    opacity: .5;
}

/* ==== Contact ==== */
.tc-contact-grid {
    display: grid;
    grid-template-columns: 1fr 480px;
    gap: 32px;
    margin-top: 32px;
    align-items: start;
}
@media (max-width: 1100px) {
    .tc-contact-grid { grid-template-columns: 1fr; }
}
.tc-contact-grid > .tc-card { width: 100%; }

/* curl card */
.tc-curl {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-family: var(--mono);
    font-size: 13px;
    color: var(--text);
}
.tc-curl .ln {
    display: grid;
    grid-template-columns: 16px auto;
    gap: 10px;
    align-items: baseline;
}
.tc-curl .ln-num {
    font-family: var(--code);
    color: var(--text-4);
    text-align: right;
}
.tc-curl .ln-body { white-space: pre-wrap; word-break: break-word; }
.tc-curl .prompt { color: var(--green); }
.tc-curl .flag { color: var(--pink); }
.tc-curl .str { color: var(--cyan); }
.tc-curl .comment { color: var(--text-3); }
.tc-curl .ok { color: var(--green); }

.tc-bar-copy {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 4px;
    background: var(--bg-soft-green);
    color: var(--green);
    font-family: var(--mono);
    font-size: 11px;
    cursor: pointer;
    transition: background .15s ease;
}
.tc-bar-copy:hover { background: #173023; }
.tc-bar-copy::before {
    content: "";
    width: 12px; height: 12px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><rect x='9' y='9' width='13' height='13' rx='2'/><path d='M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1'/></svg>") center/contain no-repeat;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><rect x='9' y='9' width='13' height='13' rx='2'/><path d='M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1'/></svg>") center/contain no-repeat;
}

/* form card */
.tc-form-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.tc-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.tc-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
@media (max-width: 600px) { .tc-field-row { grid-template-columns: 1fr; } }
.tc-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text-2);
}
.tc-label::before {
    content: ">";
    color: var(--green);
    font-weight: 700;
}
.tc-input,
.tc-textarea,
.tc-select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 4px;
    background: var(--bg);
    border: 1px solid var(--border);
    font-family: var(--mono);
    font-size: 13px;
    color: var(--text);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.tc-input::placeholder,
.tc-textarea::placeholder {
    color: var(--text-3);
}
.tc-input:focus,
.tc-textarea:focus,
.tc-select:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px #50FA7B22;
}
.tc-textarea { min-height: 120px; resize: vertical; line-height: 1.5; }

.tc-form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.tc-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-2);
}
.tc-status .dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 8px var(--green-glow);
}
.tc-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 4px;
    background: var(--green);
    color: var(--bg);
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 0 16px var(--green-glow);
    transition: background .15s ease, box-shadow .15s ease, transform .05s ease;
}
.tc-submit:hover {
    background: #6EFF93;
    box-shadow: 0 0 24px #50FA7B80;
}
.tc-submit:active { transform: translateY(1px); }
.tc-submit::after {
    content: "";
    width: 14px; height: 14px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><line x1='5' y1='12' x2='19' y2='12'/><polyline points='12 5 19 12 12 19'/></svg>") center/contain no-repeat;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><line x1='5' y1='12' x2='19' y2='12'/><polyline points='12 5 19 12 12 19'/></svg>") center/contain no-repeat;
}

/* ==== Footer ==== */
.tc-footer {
    background: var(--bg-deep);
    padding: 56px 0 32px;
    margin-top: 0;
}
.tc-footer-top {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 80px;
}
.tc-footer-top--brand-only {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
}
.tc-footer-top--brand-only .tc-fbrand {
    align-items: center;
}
.tc-footer-top--brand-only .tc-fbrand-line {
    text-align: center;
}
.tc-footer-top--brand-only .tc-fstatus {
    align-self: center;
}
@media (max-width: 980px) {
    .tc-footer-top { grid-template-columns: 1fr; gap: 48px; }
}
.tc-fbrand { display: flex; flex-direction: column; gap: 18px; }
.tc-fbrand-line {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text-3);
    line-height: 1.6;
    max-width: 380px;
}
.tc-fstatus {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: var(--mono);
    font-size: 11px;
    align-self: flex-start;
}
.tc-fstatus .dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 8px var(--green-glow);
}
.tc-fstatus .ok { color: var(--green); }
.tc-fstatus .sep { color: var(--text-3); }
.tc-fstatus .meta { color: var(--text-2); }

.tc-flink-cols {
    display: flex;
    justify-content: flex-end;
    gap: 48px;
    flex-wrap: wrap;
}
@media (max-width: 980px) { .tc-flink-cols { justify-content: flex-start; } }
.tc-flink-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 120px;
}
.tc-flink-col .head {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .5px;
    color: var(--green);
}
.tc-flink-col.cyan .head { color: var(--cyan); }
.tc-flink-col.pink .head { color: var(--pink); }
.tc-flink-col a {
    font-family: var(--mono);
    font-size: 13px;
    color: var(--text);
}
.tc-flink-col a:hover { color: var(--green); }

.tc-fdivider { height: 1px; background: var(--border); margin: 32px 0; border: 0; }

.tc-fbot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-3);
}
.tc-fbot .echo .prompt { color: var(--green); margin-right: 6px; }
.tc-fbot .links { display: inline-flex; gap: 18px; }
.tc-fbot .links a { color: var(--text-3); }
.tc-fbot .links a:hover { color: var(--text); }

/* terms page (kept simple, dark theme) */
.terms-hero {
    padding: 80px 0 32px;
    border-bottom: 1px solid var(--border-soft);
}
.terms-hero h1 {
    font-family: var(--mono);
    font-size: 36px;
    color: var(--text);
}
.terms-hero h1::before {
    content: "$ cat ";
    color: var(--green);
}
.terms-body {
    padding: 48px 0;
    font-family: var(--sans);
    color: var(--text-2);
    line-height: 1.7;
}
.terms-body h2 {
    margin: 28px 0 12px;
    font-family: var(--mono);
    font-size: 18px;
    color: var(--text);
}

/* preloader */
.preloader {
    position: fixed; inset: 0;
    background: var(--bg);
    z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    transition: opacity .3s ease;
}
.preloader::after {
    content: "$ booting monsters...";
    font-family: var(--mono);
    font-size: 13px;
    color: var(--green);
    animation: tc-blink 1s steps(1) infinite;
}

/* flash message */
.tc-flash {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 16px auto;
    max-width: 1200px;
    padding: 12px 16px;
    border-radius: 4px;
    background: var(--bg-soft-green);
    border: 1px solid var(--green);
    color: var(--green);
    font-family: var(--mono);
    font-size: 13px;
}
.tc-flash-msg::before {
    content: "$ ";
    color: var(--green);
}
.tc-flash-close {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    color: var(--green);
    font-size: 18px;
    line-height: 1;
    transition: background .15s ease, color .15s ease;
}
.tc-flash-close:hover {
    background: var(--green);
    color: var(--bg);
}
