/* =========================================
   Amethyst Academy - Corporate Site Styles
   ========================================= */

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

:root {
  /* Primary: Deep Slate Blue */
  --primary: #2C3E50;
  --primary-light: #3d566e;
  --primary-foreground: #f0f4f8;

  /* Accent: Terracotta */
  --accent: #E07A5F;

  /* Background: Warm Beige */
  --bg: #F8F6F1;
  --bg-card: #FAF8F4;
  --bg-secondary: #F0EDE6;

  /* Foreground */
  --fg: #292929;
  --fg-muted: #6b7280;

  /* Border */
  --border: #e5e2db;

  /* Shadows (neumorphism) */
  --shadow-light: #ffffff;
  --shadow-dark: #e0ddd6;

  /* Radius */
  --radius: 5px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image: radial-gradient(rgba(41,41,41,0.03) 1px, transparent 1px);
  background-size: 24px 24px;
}

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

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

ul, ol {
  list-style: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea, select {
  font: inherit;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Lora', 'Georgia', serif;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.font-mono {
  font-family: 'JetBrains Mono', 'IBM Plex Mono', monospace;
}

.font-serif {
  font-family: 'Lora', 'Georgia', serif;
}

/* --- Container --- */
.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
    max-width: 1280px;
  }
}

/* --- Neumorphism --- */
.neumorphism {
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow:
    6px 6px 12px var(--shadow-dark),
    -6px -6px 12px var(--shadow-light);
}

.neumorphism-card {
  border-radius: var(--radius);
  background: var(--bg-card);
  box-shadow:
    8px 8px 16px var(--shadow-dark),
    -8px -8px 16px var(--shadow-light);
  transition: box-shadow 0.3s ease;
}

.neumorphism-card:hover {
  box-shadow:
    10px 10px 20px #d8d5ce,
    -10px -10px 20px var(--shadow-light);
}

/* --- Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(248, 246, 241, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: 64px;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.site-header .logo img {
  height: 40px;
  width: auto;
}

.site-header .logo:hover {
  opacity: 0.8;
}

/* Desktop Nav */
.desktop-nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

.desktop-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg-muted);
  transition: color 0.2s;
  padding-bottom: 2px;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: var(--primary);
}

.desktop-nav a.active {
  border-bottom: 1px solid var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-cta {
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--primary);
  color: var(--primary);
  background: var(--bg);
  border-radius: var(--radius);
  height: 40px;
  padding: 0 1rem;
  transition: all 0.3s;
}

.header-cta:hover {
  background: var(--primary);
  color: var(--primary-foreground);
}

@media (min-width: 768px) {
  .desktop-nav {
    display: flex;
  }
  .header-cta {
    display: inline-flex;
  }
  .hamburger {
    display: none !important;
  }
}

/* Hamburger */
.hamburger {
  display: flex;
  padding: 0.5rem;
  color: var(--fg);
  transition: color 0.2s;
}

.hamburger:hover {
  color: var(--primary);
}

.hamburger svg {
  width: 24px;
  height: 24px;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(248, 246, 241, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  padding-top: 64px;
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu a {
  font-family: 'Lora', serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--fg);
  transition: color 0.2s, transform 0.3s, opacity 0.3s;
  opacity: 0;
  transform: translateY(1rem);
}

.mobile-menu.open a {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu a:hover {
  color: var(--primary);
}

.mobile-menu a:nth-child(1) { transition-delay: 0ms; }
.mobile-menu.open a:nth-child(1) { transition-delay: 50ms; }
.mobile-menu a:nth-child(2) { transition-delay: 0ms; }
.mobile-menu.open a:nth-child(2) { transition-delay: 100ms; }
.mobile-menu a:nth-child(3) { transition-delay: 0ms; }
.mobile-menu.open a:nth-child(3) { transition-delay: 150ms; }
.mobile-menu a:nth-child(4) { transition-delay: 0ms; }
.mobile-menu.open a:nth-child(4) { transition-delay: 200ms; }
.mobile-menu a:nth-child(5) { transition-delay: 0ms; }
.mobile-menu.open a:nth-child(5) { transition-delay: 250ms; }

.mobile-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 500;
  background: var(--primary);
  color: var(--primary-foreground);
  border-radius: var(--radius);
  height: 48px;
  padding: 0 2rem;
  transition: background 0.2s;
}

.mobile-cta:hover {
  background: var(--primary-light);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: all 0.2s;
  white-space: nowrap;
  gap: 0.5rem;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  height: 56px;
  padding: 0 2rem;
  font-size: 1rem;
}

.btn-primary:hover {
  background: var(--primary-light);
}

.btn-outline {
  border: 1px solid #cbd5e1;
  background: var(--bg);
  color: var(--fg);
  height: 56px;
  padding: 0 2rem;
  font-size: 1rem;
}

.btn-outline:hover {
  background: #f8fafc;
}

.btn-sm {
  height: 48px;
  padding: 0 2rem;
}

.btn-link {
  background: none;
  border: none;
  color: var(--primary);
  padding: 0;
  height: auto;
  gap: 0.5rem;
}

.btn-link:hover {
  text-decoration: underline;
}

.btn-link svg {
  transition: transform 0.2s;
}

.btn-link:hover svg {
  transform: translateX(4px);
}

/* --- Main Content --- */
main {
  flex: 1;
  padding-top: 64px;
}

.page-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --- Section styles --- */
.section {
  padding: 6rem 0;
}

.section-sm {
  padding: 4rem 0;
}

.section-lg {
  padding: 8rem 0;
}

.bg-secondary {
  background-color: var(--bg-secondary);
}

.bg-dark {
  background: #0f172a;
  color: #f1f5f9;
}

.border-b {
  border-bottom: 1px solid var(--border);
}

.border-t {
  border-top: 1px solid var(--border);
}

.border-y {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.hero canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 10;
}

.hero-label {
  display: inline-block;
  border-left: 2px solid var(--primary);
  padding-left: 1rem;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.hero-label span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #0f172a;
  margin-top: 2rem;
}

.hero h1 .accent {
  color: var(--primary);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--fg);
  max-width: 36rem;
  line-height: 1.8;
  font-weight: 300;
  margin-top: 1.5rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

/* --- Page Header (sub pages) --- */
.page-header {
  background: var(--bg-secondary);
  padding: 5rem 0;
  border-bottom: 1px solid var(--border);
}

.page-header .label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 1rem;
  display: block;
}

.page-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: #0f172a;
}

.page-header .subtitle {
  font-size: 1.25rem;
  color: var(--primary);
  font-weight: 500;
  margin-top: 0.5rem;
}

.page-header .description {
  margin-top: 1.5rem;
  color: var(--fg-muted);
  max-width: 42rem;
  line-height: 1.7;
}

/* --- Grid Layouts --- */
.grid {
  display: grid;
  gap: 2rem;
}

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

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

.grid-12 {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .grid-12 { grid-template-columns: repeat(12, 1fr); }
  .col-span-4 { grid-column: span 4; }
  .col-span-5 { grid-column: span 5; }
  .col-span-7 { grid-column: span 7; }
  .col-span-8 { grid-column: span 8; }
}

/* --- Service Cards --- */
.service-card {
  padding: 2rem;
  transition: transform 0.2s;
}

.service-card:hover {
  transform: scale(1.02);
}

.service-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(44, 62, 80, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.service-icon svg {
  width: 32px;
  height: 32px;
  color: var(--primary);
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-weight: 500;
  transition: gap 0.2s;
}

.card-link:hover {
  gap: 0.75rem;
}

.card-link svg {
  width: 16px;
  height: 16px;
}

/* --- Problem Cards --- */
.problem-card {
  padding: 1.5rem;
}

.problem-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2.5rem;
  color: var(--border);
  margin-bottom: 1rem;
  display: block;
  transition: color 0.2s;
}

.problem-card:hover .problem-number {
  color: rgba(44, 62, 80, 0.2);
}

.problem-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

.problem-card p {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.7;
}

/* --- Dark Section (Belief) --- */
.section-dark {
  background: #0f172a;
  color: #f1f5f9;
  position: relative;
  overflow: hidden;
}

.section-dark .grid-lines {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  pointer-events: none;
}

.section-dark .grid-line-h {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.2);
}

.section-dark .grid-line-v {
  position: absolute;
  top: 0;
  width: 1px;
  height: 100%;
  background: rgba(255,255,255,0.2);
}

/* --- Approach Cards --- */
.approach-card {
  padding: 2.5rem;
}

.approach-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.approach-card .subtitle {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.approach-card p {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.7;
}

/* --- Learning Order --- */
.order-box {
  position: relative;
  padding: 2rem;
}

.order-box .label-badge {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--primary);
  color: var(--primary-foreground);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
}

.order-step {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  transition: color 0.2s;
}

.order-step:hover .step-num {
  color: var(--primary);
}

.order-step:hover .step-line {
  background: rgba(44, 62, 80, 0.3);
}

.step-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  color: var(--fg-muted);
  flex-shrink: 0;
  transition: color 0.2s;
}

.step-line {
  flex: 1;
  height: 1px;
  background: var(--border);
  transition: background 0.2s;
}

.step-info {
  text-align: right;
}

.step-info .label {
  display: block;
  font-weight: 500;
  font-size: 0.875rem;
}

.step-info .desc {
  display: block;
  font-size: 0.75rem;
  color: var(--fg-muted);
}

/* --- Founder Section --- */
.founder-img-wrap {
  position: relative;
  max-width: 28rem;
}

.founder-img-wrap img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  filter: grayscale(1) contrast(1.25);
}

.founder-img-wrap .bg-accent {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  width: 12rem;
  height: 12rem;
  background: var(--bg-secondary);
  z-index: -1;
}

/* --- For Whom --- */
.for-whom-card {
  padding: 2rem;
  border-left: 4px solid;
}

.for-whom-card.positive {
  border-color: var(--primary);
}

.for-whom-card.negative {
  border-color: var(--border);
}

.for-whom-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.for-whom-card h3 svg {
  width: 20px;
  height: 20px;
}

.for-whom-card.positive h3 svg {
  color: var(--primary);
}

.for-whom-card.negative h3 {
  color: var(--fg-muted);
}

.for-whom-card li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--fg-muted);
  padding: 0.5rem 0;
}

.for-whom-card .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-top: 0.5rem;
  flex-shrink: 0;
}

.for-whom-card.positive .dot {
  background: var(--primary);
}

.for-whom-card.negative .dot {
  background: var(--border);
}

/* --- CTA Section --- */
.cta-section {
  padding: 8rem 0;
  text-align: center;
}

.cta-section h2 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  margin-bottom: 1.5rem;
}

.cta-section p {
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

@media (min-width: 640px) {
  .cta-buttons {
    flex-direction: row;
    justify-content: center;
  }
}

/* --- Footer CTA --- */
.footer-cta {
  background: rgba(44, 62, 80, 0.05);
  border-top: 1px solid rgba(44, 62, 80, 0.1);
  padding: 4rem 0;
}

.footer-cta h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-cta h2 {
    font-size: 1.875rem;
  }
}

.footer-cta > .container > p {
  text-align: center;
  color: var(--fg-muted);
  margin-bottom: 2.5rem;
}

.footer-cta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 42rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .footer-cta-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.footer-cta-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.footer-cta-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.footer-cta-card .icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(44, 62, 80, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
}

.footer-cta-card:hover .icon {
  background: rgba(44, 62, 80, 0.2);
}

.footer-cta-card .icon svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
}

.footer-cta-card .text h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.footer-cta-card .text p {
  font-size: 0.875rem;
  color: var(--fg-muted);
}

.footer-cta-card .arrow {
  margin-left: auto;
  color: var(--fg-muted);
  transition: color 0.2s, transform 0.2s;
}

.footer-cta-card:hover .arrow {
  color: var(--primary);
  transform: translateX(4px);
}

.footer-cta-card .arrow svg {
  width: 20px;
  height: 20px;
}

/* --- Footer --- */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-brand img {
  height: 32px;
  width: auto;
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--fg-muted);
  max-width: 20rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.footer-brand .company-name {
  font-size: 0.75rem;
  color: var(--fg-muted);
}

.footer-nav h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--fg-muted);
  margin-bottom: 1rem;
}

.footer-nav li {
  margin-bottom: 0.5rem;
}

.footer-nav a {
  font-size: 0.875rem;
  color: var(--fg);
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-nav a:hover {
  color: var(--primary);
}

.footer-nav a svg {
  width: 16px;
  height: 16px;
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--fg-muted);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-bottom a {
  color: var(--fg-muted);
  transition: color 0.2s;
}

.footer-bottom a:hover {
  color: var(--primary);
}

/* --- Service Detail Page --- */
.service-detail {
  gap: 4rem;
}

@media (min-width: 1024px) {
  .service-detail {
    grid-template-columns: 5fr 7fr;
    gap: 4rem;
  }
}

.service-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.service-label .icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(44, 62, 80, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-label .icon svg {
  width: 32px;
  height: 32px;
  color: var(--primary);
}

.service-label .num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  color: var(--primary);
  display: block;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: #334155;
  padding: 0.375rem 0;
}

.feature-list li svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 1px;
}

/* Timeline */
.timeline-item {
  position: relative;
  padding-left: 2rem;
  border-left: 1px solid var(--border);
  padding-bottom: 2rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -6px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.timeline-dot.active {
  background: var(--primary);
}

.timeline-dot.inactive {
  background: #cbd5e1;
}

.timeline-item h4 {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.timeline-item p {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* Financial Section */
.financial-box {
  background: #0f172a;
  color: #cbd5e1;
  padding: 2rem;
}

@media (min-width: 768px) {
  .financial-box {
    padding: 3rem;
  }
}

.financial-box h3 {
  color: #fff;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.financial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 640px) {
  .financial-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.financial-grid h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  color: var(--primary-foreground);
  margin-bottom: 0.5rem;
}

.financial-grid p {
  font-size: 0.875rem;
  line-height: 1.7;
}

/* --- Company Page --- */
.company-info-table {
  padding: 2rem;
}

.company-info-row {
  display: grid;
  grid-template-columns: 1fr;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  gap: 0.5rem;
}

.company-info-row:last-child {
  border-bottom: none;
}

@media (min-width: 768px) {
  .company-info-row {
    grid-template-columns: 1fr 2fr;
    gap: 1rem;
  }
}

.company-info-row .label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.company-info-row .value {
  color: #1e293b;
  line-height: 1.7;
  white-space: pre-line;
}

/* Map */
.map-wrap {
  aspect-ratio: 16/9;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.map-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* --- Contact Form --- */
.contact-form {
  padding: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
}

.form-group .required {
  color: #ef4444;
}

.form-input {
  width: 100%;
  height: 48px;
  padding: 0 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(240, 237, 230, 0.2);
  font-size: 1rem;
  color: var(--fg);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
}

.form-textarea {
  width: 100%;
  min-height: 200px;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(240, 237, 230, 0.2);
  font-size: 1rem;
  color: var(--fg);
  resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .form-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Radio Group */
.radio-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .radio-group {
    grid-template-columns: repeat(3, 1fr);
  }
}

.radio-option {
  position: relative;
}

.radio-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.radio-label:hover {
  background: var(--bg-secondary);
}

.radio-option input[type="radio"]:checked + .radio-label {
  border-color: var(--primary);
  color: var(--primary);
}

.radio-label svg {
  width: 24px;
  height: 24px;
  margin-bottom: 0.5rem;
}

.radio-label .text {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
}

.form-submit {
  padding-top: 1rem;
}

.form-submit .note {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--fg-muted);
}

.form-submit .note a {
  text-decoration: underline;
  transition: color 0.2s;
}

.form-submit .note a:hover {
  color: var(--primary);
}

/* --- About page --- */
.about-philosophy {
  max-width: 56rem;
  margin: 0 auto;
}

.about-philosophy h2 {
  font-size: 1.5rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.about-philosophy p {
  color: var(--fg-muted);
  line-height: 2;
  font-size: 1.0625rem;
  font-weight: 300;
  margin-bottom: 1.5rem;
}

/* Founder Story (dark) */
.founder-story {
  background: #0f172a;
  color: #f1f5f9;
}

.founder-story-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .founder-story-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.founder-photo {
  position: relative;
}

.founder-photo .img-wrap {
  aspect-ratio: 3/4;
  background: #1e293b;
  position: relative;
  overflow: hidden;
}

.founder-photo .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  filter: grayscale(1);
}

.founder-photo .corner-frame {
  position: absolute;
  bottom: -1.5rem;
  left: -1.5rem;
  width: 8rem;
  height: 8rem;
  border: 1px solid #334155;
  z-index: 10;
}

.founder-text .label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #94a3b8;
  margin-bottom: 1rem;
  display: block;
}

.founder-text h2 {
  font-size: 1.875rem;
  margin-bottom: 2rem;
  line-height: 1.4;
}

.founder-text p {
  color: #cbd5e1;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.founder-signature {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #1e293b;
}

.founder-signature .name {
  font-family: 'Lora', serif;
  font-size: 1.125rem;
}

.founder-signature .role {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  color: #64748b;
  margin-top: 0.25rem;
}

/* Values */
.value-card {
  text-align: center;
  padding: 2rem;
}

.value-number {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.25rem;
  color: var(--primary);
}

.value-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.value-card p {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.7;
}

/* --- Utilities --- */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--fg-muted); }
.text-primary { color: var(--primary); }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.w-full { width: 100%; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* --- Scroll margin for anchor links --- */
[id] {
  scroll-margin-top: 80px;
}

/* Selection */
::selection {
  background: rgba(44, 62, 80, 0.1);
  color: var(--primary);
}
