/* ============================================================
   rozeta labs — Design System
   Stripe light-mode aesthetic adapted for rozeta
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@300;400;500;600;700;800&family=Playfair+Display:wght@400;700&display=swap');

/* ── Custom Properties ──────────────────────────────────────── */
:root {
  /* Colors */
  --color-bg:             #ffffff;
  --color-surface:        #f2efef;
  --color-surface-2:      #e8e4e4;
  --color-border:         #c7c8c8;
  --color-text-primary:   #22373b;
  --color-text-secondary: #4a6266;
  --color-text-muted:     #7a9296;
  --color-accent:         #9c1f22;
  --color-accent-hover:   #7a1719;
  --color-accent-light:   rgba(156, 31, 34, 0.09);
  --color-accent-2:       #994c5a;
  --color-accent-copper:  #994c5a;
  --color-cta-secondary:  #22373b;
  --color-white:          #FFFFFF;
  --color-success:        #27AE60;

  /* Aurora Gradient */
  --gradient-aurora: linear-gradient(
    135deg,
    #994c5a 0%,
    #9c1f22 50%,
    #22373b 100%
  );
  --gradient-aurora-soft: linear-gradient(
    135deg,
    rgba(153, 76, 90, 0.7) 0%,
    rgba(156, 31, 34, 0.7) 50%,
    rgba(34, 55, 59, 0.7) 100%
  );

  /* Typography Scale */
  --font-family: 'Figtree', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Newsreader', Georgia, serif;
  --text-display: clamp(40px, 6vw, 72px);
  --text-h2:      clamp(28px, 4vw, 48px);
  --text-h3:      clamp(20px, 2.5vw, 28px);
  --text-body-lg: 18px;
  --text-body:    16px;
  --text-sm:      14px;
  --text-xs:      12px;

  /* Line heights */
  --leading-tight:  1.15;
  --leading-snug:   1.3;
  --leading-normal: 1.6;
  --leading-relaxed: 1.75;

  /* Spacing */
  --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;

  /* Radius */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  12px;
  --radius-xl:  20px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(34, 55, 59, 0.04);
  --shadow-md:  0 2px 12px rgba(34, 55, 59, 0.06);
  --shadow-lg:  0 4px 24px rgba(34, 55, 59, 0.10);
  --shadow-xl:  0 8px 40px rgba(34, 55, 59, 0.14);
  --shadow-accent: 0 4px 20px rgba(156, 31, 34, 0.28);

  /* Transitions */
  --transition-fast:   150ms ease;
  --transition-base:   250ms ease;
  --transition-slow:   400ms ease;

  /* Layout */
  --container-max:   1200px;
  --container-narrow: 760px;
  --nav-height:       80px;
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

body {
  font-family: var(--font-family);
  font-size: var(--text-body);
  color: var(--color-text-primary);
  background-color: var(--color-bg);
  line-height: var(--leading-normal);
  overflow-x: hidden;
  padding-top: var(--nav-height);
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  font-family: var(--font-family);
  cursor: pointer;
  border: none;
  background: none;
}

/* ── Typography ─────────────────────────────────────────────── */
h1 {
  font-size: var(--text-display);
  font-weight: 800;
  line-height: var(--leading-tight);
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
}

h2 {
  font-family: var(--font-display);
  font-size: var(--text-h2);
  font-weight: 400;
  line-height: var(--leading-snug);
  letter-spacing: -0.015em;
  color: var(--color-text-primary);
}

h3 {
  font-size: var(--text-h3);
  font-weight: 600;
  line-height: var(--leading-snug);
  color: var(--color-text-primary);
}

h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text-primary);
}

p {
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

.text-muted {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.label {
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-accent);
}

/* ── Container ──────────────────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 13px 24px;
  font-size: var(--text-body);
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  white-space: nowrap;
  cursor: pointer;
}

.btn-primary {
  background: #1a1a1a;
  color: var(--color-white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

.btn-primary:hover {
  background: #333333;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.22);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  background: transparent;
  color: var(--color-text-primary);
  border-color: var(--color-text-primary);
}

.btn-outline:hover {
  background: var(--color-text-primary);
  color: var(--color-white);
  transform: translateY(-1px);
}

.btn-outline:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--color-white);
  color: var(--color-cta-secondary);
  border: 1.5px solid var(--color-border);
}

.btn-secondary:hover {
  border-color: var(--color-text-secondary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-sm {
  padding: 10px 18px;
  font-size: var(--text-sm);
}

.btn-lg {
  padding: 16px 32px;
  font-size: var(--text-body-lg);
}

.btn-arrow::after {
  content: '→';
  transition: transform var(--transition-fast);
}

.btn-arrow:hover::after {
  transform: translateX(3px);
}

/* ── Cards ──────────────────────────────────────────────────── */
.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--color-accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  font-size: 22px;
}

/* ── Section spacing ────────────────────────────────────────── */
.section {
  padding: var(--space-24) 0;
}

.section-sm {
  padding: var(--space-16) 0;
}

.section-lg {
  padding: var(--space-32) 0;
}

.section-surface {
  background: var(--color-surface);
}

.section-surface-2 {
  background: var(--color-surface-2);
}

/* ── Section header ─────────────────────────────────────────── */
.section-header {
  margin-bottom: var(--space-16);
}

.section-header.centered {
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.section-header .label {
  margin-bottom: var(--space-3);
}

.section-header h2 {
  margin-bottom: var(--space-4);
}

.section-header p {
  font-size: var(--text-body-lg);
  color: var(--color-text-secondary);
}

/* ── Grid systems ───────────────────────────────────────────── */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

/* ── Badge ──────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-accent {
  background: var(--color-accent-light);
  color: var(--color-accent);
}

.badge-success {
  background: rgba(39, 174, 96, 0.1);
  color: var(--color-success);
}

/* ── Divider ────────────────────────────────────────────────── */
.divider {
  width: 48px;
  height: 3px;
  background: var(--color-accent);
  border-radius: var(--radius-full);
  margin: var(--space-5) 0;
}

.divider.centered {
  margin: var(--space-5) auto;
}

/* ── Responsive breakpoints ─────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root {
    --space-24: 64px;
    --space-32: 80px;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .section-header.centered {
    text-align: left;
  }

  .btn-lg {
    padding: 14px 24px;
    font-size: var(--text-body);
  }
}
