/* Fonts loaded async in default.hbs — keep this file render-blocking-free */

:root {
    --brand-primary: #0D9488;
    --brand-dark: #111827;
    --brand-light: #F0FDFA;
    --brand-accent: #14B8A6;
    --brand-neutral: #6B7280;

    --white: #FFFFFF;
    --light-gray: #E5E7EB;
    --medium-gray: #9CA3AF;
    --dark-gray: #374151;
    --success: #10B981;
    --error: #EF4444;
    --warning: #F59E0B;
    --info: #3B82F6;

    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    /* Cloud Terminal palette — used by .ct-* utility classes below */
    --ct-bg: #050810;
    --ct-bg-soft: #0b0f1a;
    --ct-bg-elev: #0f1422;
    --ct-border: rgba(255,255,255,0.08);
    --ct-border-hover: rgba(255,255,255,0.16);
    --ct-accent: #2dd4bf;
    --ct-accent-soft: #5eead4;
    --ct-success: #4ade80;
    --ct-text: #e5e7eb;
    --ct-text-dim: #9ca3af;
    --ct-text-faint: #6b7280;

    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-6: 24px;
    --space-8: 32px;
    --space-12: 48px;
    --space-16: 64px;

    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
}

/* Base */
html { overflow-x: hidden; }
.site-logo,
.site-logo:hover,
.site-logo:focus,
.site-logo span,
.site-logo:hover span { text-decoration: none !important; }
body {
    font-family: var(--font-family);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: var(--dark-gray);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Primary */
.cms-bg-primary { background-color: var(--brand-primary) !important; }
.cms-text-primary { color: var(--brand-primary) !important; }
.cms-border-primary { border-color: var(--brand-primary) !important; }

/* Dark */
.cms-bg-dark { background-color: var(--brand-dark) !important; }
.cms-text-dark { color: var(--brand-dark) !important; }
.cms-border-dark { border-color: var(--brand-dark) !important; }

/* Light */
.cms-bg-light { background-color: var(--brand-light) !important; }
.cms-text-light { color: var(--brand-light) !important; }
.cms-border-light { border-color: var(--brand-light) !important; }

/* Accent */
.cms-bg-accent { background-color: var(--brand-accent) !important; }
.cms-text-accent { color: var(--brand-accent) !important; }
.cms-border-accent { border-color: var(--brand-accent) !important; }

/* Neutral */
.cms-text-neutral { color: var(--brand-neutral) !important; }
.cms-bg-neutral { background-color: var(--brand-neutral) !important; }
.cms-border-neutral { border-color: var(--brand-neutral) !important; }

/* Typography
   `!important` is intentional: index.css ships a global `h1 { font-family: var(--gh-font-heading, var(--font-sans)) }`
   that loads after app.css and would otherwise win — forcing Inter (sans) instead of Inter Tight (the design token). */
h1, h2, h3, h4, h5, h6,
.cms-h1, .cms-h2, .cms-h3, .cms-h4, .cms-h5 {
    font-family: var(--font-heading) !important;
    font-feature-settings: "cv11", "ss01", "ss03";
}

.cms-h1 { font-size: 48px; font-weight: 700; line-height: 1.05; letter-spacing: -0.035em; margin-bottom: 24px; }
.cms-h2 { font-size: 36px; font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 16px; }
.cms-h3 { font-size: 24px; font-weight: 600; line-height: 1.25; letter-spacing: -0.02em; margin-bottom: 12px; }
.cms-h4 { font-size: 20px; font-weight: 600; line-height: 1.3; letter-spacing: -0.015em; margin-bottom: 8px; }
.cms-h5 { font-size: 18px; font-weight: 600; line-height: 1.4; letter-spacing: -0.01em; margin-bottom: 8px; }
.cms-body { font-size: 16px; font-weight: 400; line-height: 1.65; margin-bottom: 8px; letter-spacing: -0.005em; }
.cms-small { font-size: 14px; font-weight: 400; line-height: 1.5; margin-bottom: 8px; }
code, kbd, pre, samp, .cms-mono { font-family: var(--font-mono); }

/* Links */
.cms-link { text-decoration: none; transition: color 150ms ease; }
.cms-link:hover { text-decoration: underline; }

/* Buttons */
.cms-btn {
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    cursor: pointer;
    text-decoration: none;
    transition: all 150ms ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.cms-btn.hidden, .faster-auth-signin.hidden, .faster-auth-subscribe.hidden, .faster-auth-account.hidden { display: none !important; }
.cms-btn-disabled { opacity: 0.6; cursor: not-allowed; }
.cms-btn-primary { background: var(--brand-primary); color: var(--white); border: none; }
.cms-btn-primary:hover { opacity: 0.9; }
.cms-btn-outline { background: transparent; border: 1px solid var(--light-gray); color: var(--dark-gray); }
.cms-btn-outline:hover { border-color: var(--brand-primary); color: var(--brand-primary); }

/* Cards */
.cms-card {
    border-radius: var(--radius-lg);
    border: 1px solid var(--light-gray);
    padding: 0;
    transition: box-shadow 150ms ease;
    overflow: hidden;
}
.cms-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.cms-card-header { margin-bottom: 16px; }
.cms-card-title { font-size: 20px; font-weight: 600; line-height: 1.3; }
.cms-card-content { font-size: 16px; line-height: 1.7; }
.cms-card-footer { margin-top: 16px; }

/* Forms */
.cms-form-control {
    display: block; width: 100%; height: 40px; padding: 8px 12px;
    font-size: 16px; font-family: var(--font-family); color: var(--dark-gray);
    background-color: var(--white); border: 1px solid var(--light-gray);
    border-radius: var(--radius-md); transition: border-color 150ms ease; box-sizing: border-box;
}
.cms-form-control:hover { border-color: var(--brand-primary); }
.cms-form-control:focus { border-color: var(--brand-primary); outline: none; box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1); }
.cms-form-label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; color: var(--dark-gray); }
.cms-form-select {
    display: block; width: 100%; height: 40px; padding: 8px 12px;
    font-size: 16px; font-family: var(--font-family); color: var(--dark-gray);
    background-color: var(--white); border: 1px solid var(--light-gray);
    border-radius: var(--radius-md); appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239CA3AF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; box-sizing: border-box;
}
.cms-form-select:focus { outline: none; }
.cms-form-textarea {
    width: 100%; min-height: 100px; padding: 8px 12px;
    font-size: 16px; font-family: var(--font-family);
    border-radius: var(--radius-md); resize: vertical;
    transition: border-color 150ms ease; box-sizing: border-box;
}
.cms-form-textarea:focus { outline: none; }
.cms-form-checkbox, .cms-form-radio { opacity: 0; width: 0; height: 0; }
.cms-form-checkbox + label, .cms-form-radio + label { padding-left: 28px; cursor: pointer; font-size: 16px; line-height: 20px; }
.cms-form-checkbox + label:before { content: ''; left: 0; top: 0; width: 18px; height: 18px; border-radius: 4px; }
.cms-form-checkbox:checked + label:after { content: ''; left: 6px; top: 2px; width: 6px; height: 10px; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.cms-form-radio + label:before { content: ''; left: 0; top: 0; width: 18px; height: 18px; border-radius: 50%; }
.cms-form-radio:checked + label:after { content: ''; left: 5px; top: 5px; width: 10px; height: 10px; border-radius: 50%; }
.cms-error-message { font-size: 14px; margin-top: 4px; color: var(--error); }
.cms-success-message { font-size: 14px; margin-top: 4px; color: var(--success); }

/* Content body width */
#ai_post .content-body:not(:has(.kg-width-full)) {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 16px;
    padding-right: 16px;
}

/* Post elements */
.post-feature-image { width: 100%; height: 100%; object-fit: cover; transition: transform 300ms ease; }
.cms-card:hover .post-feature-image { transform: scale(1.02); }
.post-tag { color: var(--brand-primary); font-size: 13px; font-weight: 500; text-decoration: none; }
.post-tag:hover { text-decoration: underline; }
.post-title { font-size: 18px; font-weight: 600; color: var(--brand-dark); transition: color 150ms ease; }
.cms-card:hover .post-title { color: var(--brand-primary); }
.post-content { color: var(--brand-neutral); font-size: 15px; line-height: 1.6; flex-grow: 1; }
.post-meta { color: var(--brand-neutral); font-size: 14px; display: flex; align-items: center; margin-top: auto; }
.post-meta i { margin-right: var(--space-2); }
.site-posts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--space-8); }
.post-item { position: relative; }
.post-link { position: absolute; inset: 0; z-index: 10; }

@media (max-width: 768px) {
    .cms-h1 { font-size: 32px; line-height: 1.15; }
    .cms-h2 { font-size: 28px; line-height: 1.2; }
    .cms-h3 { font-size: 22px; line-height: 1.3; }
    .cms-btn { margin-bottom: 8px; }
}

/* ==========================================================================
   Cloud Terminal design system — global utilities so pages don't reinvent them
   ----------------------------------------------------------------------------
   Tokens live on :root above (--ct-*). Use these classes on any page.
   ========================================================================== */

/* ---- Dark "terminal" section background (hero / CTA) ---- */
.ct-section-dark {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background-color: var(--ct-bg);
    color: #fff;
}
.ct-section-dark-gradient {
    background: linear-gradient(180deg, var(--ct-bg-soft) 0%, var(--ct-bg) 100%);
}
.ct-section-dark > * { position: relative; z-index: 1; }
/* Defend headings inside dark sections against global h1/h2 dark-color rules */
.ct-section-dark h1,
.ct-section-dark h2,
.ct-section-dark h3,
.ct-section-dark h4 { color: #ffffff !important; }
.ct-section-dark p,
.ct-section-dark .ct-subtitle { color: var(--ct-text-dim); }
.ct-section-dark .ct-meta { color: var(--ct-text-faint); }

/* ---- Decorative backdrop: grid + glow orbs ---- */
.ct-hero-grid {
    position: absolute; inset: 0;
    background-image:
      linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    pointer-events: none;
}
.ct-hero-glow {
    position: absolute; border-radius: 50%; pointer-events: none;
    filter: blur(80px); opacity: 0.5;
}
.ct-hero-glow-1 {
    width: 500px; height: 500px;
    top: -150px; left: -100px;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.6), transparent 70%);
    animation: ct-drift 22s ease-in-out infinite;
}
.ct-hero-glow-2 {
    width: 400px; height: 400px;
    bottom: -100px; right: -80px;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.45), transparent 70%);
    animation: ct-drift 28s ease-in-out infinite reverse;
}
.ct-cta-glow::before {
    content: '';
    position: absolute;
    top: -200px; left: 50%;
    transform: translateX(-50%);
    width: 600px; height: 400px;
    background: radial-gradient(ellipse, rgba(13, 148, 136, 0.25), transparent 70%);
    filter: blur(60px);
    pointer-events: none;
}
@keyframes ct-drift {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(40px, -30px); }
}

/* ---- Badge (eyebrow with animated dot) ---- */
.ct-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: rgba(45, 212, 191, 0.08);
    border: 1px solid rgba(45, 212, 191, 0.25);
    color: var(--ct-accent-soft);
}
.ct-badge-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--ct-accent);
    box-shadow: 0 0 8px rgba(45, 212, 191, 0.8);
    animation: ct-pulse-soft 2s ease-in-out infinite;
}
@keyframes ct-pulse-soft {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

/* ---- Eyebrow (uppercase tag above section headings) ---- */
.ct-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--brand-primary);
    margin-bottom: 12px;
}

/* ---- Gradient title accent (the span that wraps headline emphasis)
   Belt-and-braces: defends against global `h1 { color: ... }` rules in index.css
   and against any cms-text-* utility class. Always renders the gradient. */
.ct-title-accent {
    display: inline-block;
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
    background-image: linear-gradient(135deg, #2dd4bf 0%, #5eead4 100%) !important;
    background-clip: text !important;
    -webkit-background-clip: text !important;
}
/* When splitText (FasterMotion) wraps each char in its own <span>, the parent's
   background-clip: text doesn't propagate. Re-apply the gradient to descendant
   spans so per-char animations still render the gradient correctly. */
.ct-title-accent span,
.ct-title-accent .fm-char,
.ct-title-accent .fm-word,
.ct-title-accent .fm-line {
    background-image: linear-gradient(135deg, #2dd4bf 0%, #5eead4 100%) !important;
    background-clip: text !important;
    -webkit-background-clip: text !important;
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
}

/* ---- Buttons ---- */
.ct-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: var(--brand-primary);
    box-shadow: 0 8px 24px rgba(13, 148, 136, 0.35);
    transition: all 0.2s ease;
    text-decoration: none;
}
.ct-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(13, 148, 136, 0.45);
    opacity: 1;
}
.ct-btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    border: 1px solid var(--ct-border);
    background: transparent;
    transition: all 0.2s ease;
    text-decoration: none;
}
.ct-btn-ghost:hover {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.3);
    transform: translateY(-1px);
    opacity: 1;
}

/* ---- Step card (numbered "01/02/03" cards) ---- */
.ct-step-card {
    position: relative;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 28px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.ct-step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.06);
    border-color: var(--brand-accent);
}
.ct-step-card h3 {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    color: #111827;
    margin: 0 0 8px;
}
.ct-step-card p {
    font-size: 14px;
    line-height: 1.6;
    color: #6b7280;
}
.ct-step-num {
    position: absolute;
    top: 16px; right: 20px;
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    color: rgba(13, 148, 136, 0.12);
    line-height: 1;
}
.ct-step-icon,
.ct-feature-icon {
    width: 44px; height: 44px;
    border-radius: 8px;
    background: var(--brand-light);
    color: var(--brand-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* ---- Feature card (icon tile + lift on hover, fills brand on hover) ---- */
.ct-feature-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.ct-feature-card:hover {
    border-color: #d1d5db;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}
.ct-feature-card:hover .ct-feature-icon {
    background: var(--brand-primary);
    color: #fff;
}
.ct-feature-card h3 {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: #111827;
    margin: 0 0 8px;
}
.ct-feature-card p {
    font-size: 14px;
    line-height: 1.6;
    color: #6b7280;
}

/* ---- Job card (list-style link with slide-right hover) ---- */
.ct-job-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
}
.ct-job-card:hover {
    border-color: var(--brand-primary);
    box-shadow: 0 4px 16px rgba(13, 148, 136, 0.1);
    transform: translateX(4px);
    opacity: 1;
}
.ct-job-card:hover .ct-job-card-arrow { color: var(--brand-primary); }
.ct-job-card-arrow { color: #9ca3af; transition: color 0.2s ease; }
.ct-job-card h3 {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: #111827;
    margin: 0 0 4px;
    letter-spacing: 0;
}

/* ---- Stat card (centered number + label) ---- */
.ct-stat-card {
    background: #fafafa;
    border: 1px solid #f3f4f6;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.ct-stat-card:hover {
    transform: translateY(-3px);
    border-color: var(--brand-accent);
    box-shadow: 0 12px 32px rgba(13, 148, 136, 0.08);
}
.ct-stat-num {
    font-family: var(--font-heading);
    font-size: 30px;
    font-weight: 700;
    color: #111827;
    line-height: 1;
    margin-bottom: 4px;
}
.ct-stat-label { font-size: 14px; color: var(--brand-neutral); }

/* ---- Hero entrance fade (staggered) ---- */
.ct-fade {
    opacity: 0;
    transform: translateY(20px);
    animation: ct-enter 0.7s ease-out forwards;
}
.ct-fade-1 { animation-delay: 0.05s; }
.ct-fade-2 { animation-delay: 0.18s; }
.ct-fade-3 { animation-delay: 0.32s; }
.ct-fade-4 { animation-delay: 0.46s; }
.ct-fade-5 { animation-delay: 0.6s; }
@keyframes ct-enter {
    to { opacity: 1; transform: translateY(0); }
}

/* ---- Scroll reveal (parent + staggered children) ---- */
.ct-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.ct-reveal.is-visible { opacity: 1; transform: translateY(0); }
.ct-reveal-children > * {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.ct-reveal-children.is-visible > * { opacity: 1; transform: translateY(0); }
.ct-reveal-children.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.ct-reveal-children.is-visible > *:nth-child(2) { transition-delay: 0.10s; }
.ct-reveal-children.is-visible > *:nth-child(3) { transition-delay: 0.15s; }
.ct-reveal-children.is-visible > *:nth-child(4) { transition-delay: 0.20s; }
.ct-reveal-children.is-visible > *:nth-child(5) { transition-delay: 0.25s; }
.ct-reveal-children.is-visible > *:nth-child(6) { transition-delay: 0.30s; }

@media (prefers-reduced-motion: reduce) {
    .ct-fade,
    .ct-reveal,
    .ct-reveal-children > * {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
        transition: none !important;
    }
    .ct-hero-glow,
    .ct-badge-dot { animation: none !important; }
}
