/* =============================================================
   Obney.ai Design System — Colors + Type
   Source: Obney.ai Brand Guidelines (Feb 2026) + logo SVGs.
   ============================================================= */

/* -----------------------------------------------------------------
   Fonts — loaded from Google Fonts (per brand guidelines "Resources")
   ----------------------------------------------------------------- */
@import url("https://fonts.googleapis.com/css2?family=Figtree:wght@300;400;500;600;700;800;900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@300;400;500&display=swap");
/* Cal Sans — display only. Self-hosted from fonts/. */
@font-face {
  font-family: "Cal Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/cal-sans-latin-400-normal.woff2") format("woff2"),
       url("fonts/cal-sans-latin-400-normal.woff") format("woff");
}

:root {
  /* =========================================================
     BRAND COLORS — exact values from logo SVGs
     ========================================================= */
  --color-midnight: #142C37;   /* primary brand — deep navy   */
  --color-ocean:    #68E4E9;   /* primary brand — bright cyan */
  --color-green:    #95FFA6;   /* accent                      */
  --color-orange:   #FFC2A7;   /* accent — soft peach         */
  --color-pink:     #F5B0FF;   /* accent                      */
  --color-yellow:   #F1FF73;   /* accent                      */
  --color-white:    #FFFFFF;
  --color-cream:    #F5F1EA;   /* off-white pairing for midnight */

  /* =========================================================
     MIDNIGHT SCALE — derived neutral / dark scale
     ========================================================= */
  --midnight-950: #08141A;
  --midnight-900: #0E1F28;
  --midnight-800: #142C37;     /* brand midnight              */
  --midnight-700: #1F3F4E;
  --midnight-600: #2E5364;
  --midnight-500: #466A7B;
  --midnight-400: #6B8A98;
  --midnight-300: #9CB1BB;
  --midnight-200: #C8D4DA;
  --midnight-100: #E6ECEF;
  --midnight-50:  #F4F7F8;

  /* =========================================================
     OCEAN SCALE
     ========================================================= */
  --ocean-700: #1D9CA1;
  --ocean-600: #2DBCC2;
  --ocean-500: #4ED3D8;
  --ocean-400: #68E4E9;        /* brand ocean                 */
  --ocean-300: #8FECEF;
  --ocean-200: #B5F2F4;
  --ocean-100: #DCF8F9;
  --ocean-50:  #EEFBFC;

  /* =========================================================
     ACCENT SCALES (lighter / darker companions)
     ========================================================= */
  --green-600: #4FCC65;
  --green-500: #6FE783;
  --green-400: #95FFA6;        /* brand                       */
  --green-200: #C8FFD1;
  --green-100: #E6FFEB;

  --orange-600: #FF8E5E;
  --orange-500: #FFA683;
  --orange-400: #FFC2A7;       /* brand                       */
  --orange-200: #FFDDCB;
  --orange-100: #FFEEE3;

  --pink-600: #E47BFF;
  --pink-500: #ED96FF;
  --pink-400: #F5B0FF;         /* brand                       */
  --pink-200: #FAD6FF;
  --pink-100: #FDEBFF;

  --yellow-600: #DDEC36;
  --yellow-500: #E8F555;
  --yellow-400: #F1FF73;       /* brand                       */
  --yellow-200: #F8FFB3;
  --yellow-100: #FCFFD9;

  /* =========================================================
     SEMANTIC SURFACE / TEXT TOKENS
     ========================================================= */
  --bg:         var(--color-white);
  --bg-muted:   var(--midnight-50);
  --bg-inverse: var(--midnight-800);
  --bg-card:    var(--color-white);
  --bg-accent:  var(--ocean-100);

  --fg-1:       var(--midnight-800);   /* primary text         */
  --fg-2:       var(--midnight-600);   /* secondary text       */
  --fg-3:       var(--midnight-400);   /* tertiary / helper    */
  --fg-on-dark: var(--color-white);
  --fg-on-accent: var(--midnight-800);
  --fg-link:    var(--ocean-700);

  --border:        var(--midnight-100);
  --border-strong: var(--midnight-200);
  --border-focus:  var(--ocean-600);

  --accent:        var(--color-ocean);
  --accent-hover:  var(--ocean-500);
  --accent-press:  var(--ocean-600);

  /* Semantic status (derived; not in source guidelines) */
  --status-success: var(--green-600);
  --status-warning: #E8A03A;
  --status-error:   #D9534F;
  --status-info:    var(--ocean-700);

  /* =========================================================
     TYPOGRAPHY — families
     ========================================================= */
  --font-sans:    "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
  --font-display: "Cal Sans", "Figtree", system-ui, sans-serif;

  /* Type sizes — extracted from brand "Heading styles" page.
     Tuned for a 16px body baseline. */
  --fs-display-1: 96px;   /* Cal Sans, marketing hero        */
  --fs-display-2: 72px;
  --fs-display-3: 56px;

  --fs-h1: 48px;
  --fs-h2: 36px;
  --fs-h3: 28px;
  --fs-h4: 22px;

  --fs-subheading-1: 20px;
  --fs-subheading-2: 16px;

  --fs-body-1: 18px;
  --fs-body-2: 16px;
  --fs-body-3: 14px;

  --fs-helper-1: 13px;
  --fs-helper-2: 12px;

  /* Weights */
  --fw-light: 300;      /* @kind font */
  --fw-regular: 400;    /* @kind font */
  --fw-medium: 500;     /* @kind font */
  --fw-semibold: 600;   /* @kind font */
  --fw-bold: 700;       /* @kind font */
  --fw-extrabold: 800;  /* @kind font */
  --fw-black: 900;      /* @kind font */

  /* Line heights */
  --lh-tight: 1.05;     /* @kind font */
  --lh-snug:  1.18;     /* @kind font */
  --lh-base:  1.45;     /* @kind font */
  --lh-loose: 1.6;      /* @kind font */

  /* Letter spacing — mono subheadings get a slight track */
  --tracking-tight: -0.02em;     /* @kind font */
  --tracking-normal: 0;          /* @kind font */
  --tracking-mono:  0.02em;      /* @kind font */
  --tracking-eyebrow: 0.08em;    /* @kind font */

  /* =========================================================
     SPACING — 4px base scale
     ========================================================= */
  --space-0:  0;
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;

  /* =========================================================
     RADII
     ========================================================= */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-pill: 999px;

  /* =========================================================
     SHADOWS — keep restrained; brand favors crisp edges over haze.
     ========================================================= */
  --shadow-xs: 0 1px 2px rgba(20, 44, 55, 0.06);
  --shadow-sm: 0 2px 6px rgba(20, 44, 55, 0.08);
  --shadow-md: 0 6px 16px rgba(20, 44, 55, 0.10);
  --shadow-lg: 0 14px 36px rgba(20, 44, 55, 0.14);
  --shadow-focus: 0 0 0 3px rgba(104, 228, 233, 0.45);
  --shadow-inner: inset 0 1px 0 rgba(255, 255, 255, 0.06);

  /* =========================================================
     MOTION
     ========================================================= */
  --ease-standard: cubic-bezier(0.2, 0.7, 0.1, 1);   /* @kind other */
  --ease-emphasized: cubic-bezier(0.16, 1, 0.3, 1);  /* @kind other */
  --duration-fast: 120ms;   /* @kind other */
  --duration-base: 200ms;   /* @kind other */
  --duration-slow: 360ms;   /* @kind other */
}

/* =================================================================
   SEMANTIC TYPE STYLES — apply to elements directly via @apply-style
   or by adding the .o-h1 etc class.
   ================================================================= */
html, body { font-family: var(--font-sans); color: var(--fg-1); background: var(--bg); }
body { font-size: var(--fs-body-2); line-height: var(--lh-base); -webkit-font-smoothing: antialiased; }

h1, .o-h1 {
  font-family: var(--font-sans);
  font-size: var(--fs-h1);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--fg-1);
  margin: 0;
}
h2, .o-h2 {
  font-family: var(--font-sans);
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  line-height: var(--lh-snug);
  letter-spacing: var(--tracking-tight);
  margin: 0;
}
h3, .o-h3 {
  font-family: var(--font-sans);
  font-size: var(--fs-h3);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-snug);
  margin: 0;
}
h4, .o-h4 {
  font-family: var(--font-sans);
  font-size: var(--fs-h4);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-snug);
  margin: 0;
}

.o-display-1, .o-display-2, .o-display-3 {
  font-family: var(--font-display);
  font-weight: var(--fw-regular);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  margin: 0;
}
.o-display-1 { font-size: var(--fs-display-1); }
.o-display-2 { font-size: var(--fs-display-2); }
.o-display-3 { font-size: var(--fs-display-3); }

.o-subheading-1 {
  font-family: var(--font-sans);
  font-size: var(--fs-subheading-1);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-snug);
}
.o-subheading-1-mono {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: var(--fw-medium);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
}
.o-subheading-2 {
  font-family: var(--font-sans);
  font-size: var(--fs-subheading-2);
  font-weight: var(--fw-semibold);
}
.o-subheading-2-mono {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: var(--fw-medium);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
}

.o-body-1 { font-size: var(--fs-body-1); line-height: var(--lh-base); }
.o-body-2 { font-size: var(--fs-body-2); line-height: var(--lh-base); }
.o-body-3 { font-size: var(--fs-body-3); line-height: var(--lh-base); }
.o-helper-1 { font-size: var(--fs-helper-1); color: var(--fg-3); }
.o-helper-2 { font-size: var(--fs-helper-2); color: var(--fg-3); }

code, .o-code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--midnight-50);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: var(--radius-xs);
}

/* Tasteful link style */
a { color: var(--fg-link); text-decoration: none; }
a:hover { color: var(--midnight-800); text-decoration: underline; text-underline-offset: 3px; }
