/* =====================================================
   base.css — Datatoc Design System Tokens & Reset
   Professional Light Theme (Databricks / Gemini style)
   ===================================================== */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

/* ---- Design Tokens ---- */
:root {
    /* Backgrounds — clean white with subtle alternation */
    --bg:        #ffffff;
    --bg-1:      #f7f8fa;
    --bg-2:      #eef0f3;
    --bg-card:   #ffffff;
    --bg-subtle: rgba(0,0,0,0.03);

    /* Borders — light grey, professional */
    --border:       rgba(0,0,0,0.08);
    --border-mid:   rgba(0,0,0,0.14);
    --border-hover: rgba(0,0,0,0.25);

    /* Text — dark on light */
    --text-1: #111827;
    --text-2: #6b7280;
    --text-3: #9ca3af;

    /* Brand Green — darker, more professional */
    --green:       #16a34a;
    --green-light: #22c55e;
    --green-dark:  #15803d;
    --green-glow:  rgba(22,163,74,0.08);
    --green-glow2: rgba(22,163,74,0.05);

    /* Status */
    --red:    #dc2626;
    --amber:  #d97706;
    --blue:   #2563eb;

    /* Typography */
    --font:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --mono:  'JetBrains Mono', 'Fira Code', monospace;

    /* Spacing */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;

    /* Transitions */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --t:    all 0.22s var(--ease);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; background: var(--bg); }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text-2);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ---- Typography — thinner, more professional ---- */
h1,h2,h3,h4,h5,h6 {
    color: var(--text-1);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}
p { color: var(--text-2); line-height: 1.65; }
a { text-decoration: none; color: inherit; transition: var(--t); }
img, svg { display: block; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; }

/* ---- Layout Utilities ---- */
.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 64px;
}

.section-label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 14px;
}

.section-title {
    font-size: clamp(1.75rem, 2.6vw, 2.6rem);
    font-weight: 600;
    letter-spacing: -0.025em;
    color: var(--text-1);
    margin-bottom: 16px;
    line-height: 1.15;
}

.section-sub {
    font-size: 1.05rem;
    color: var(--text-2);
    line-height: 1.7;
    max-width: 600px;
}

/* ---- Shared Buttons ---- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--green);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 11px 22px;
    border-radius: 8px;
    transition: var(--t);
    white-space: nowrap;
    border: 1px solid transparent;
}
.btn-primary:hover {
    background: var(--green-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(22,163,74,0.25);
    color: #fff;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--text-1);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 11px 22px;
    border-radius: 8px;
    border: 1px solid var(--border-mid);
    transition: var(--t);
    white-space: nowrap;
}
.btn-secondary:hover {
    border-color: var(--border-hover);
    background: var(--bg-subtle);
    transform: translateY(-1px);
}

/* ---- Dividers ---- */
.section-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 0;
}

/* ---- Responsive helpers ---- */
@media (max-width: 1100px) { .container { padding: 0 40px; } }
@media (max-width: 768px)  { .container { padding: 0 20px; } }
