/* ==========================================================================
   ALAFRAME — DESIGN SYSTEM (V2)
   The Hybrid Creative Studio // Editorial Minimalist Architecture
   ========================================================================== */

/* Load Google Web Fonts for editorial Garamond fallbacks */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,600&family=EB+Garamond:ital,wght@0,500;0,600;0,700;1,600&display=swap');

/* Creato Display / Creato Pro Font Stack */
@font-face {
  font-family: 'Creato Display';
  font-style: normal;
  font-weight: 400;
  src: url('../assets/fonts/CreatoDisplay-Regular.woff') format('woff'),
       url('https://fonts.cdnfonts.com/s/57864/CreatoDisplay-Regular.woff') format('woff');
  font-display: swap;
}
@font-face {
  font-family: 'Creato Display';
  font-style: normal;
  font-weight: 500;
  src: url('../assets/fonts/CreatoDisplay-Medium.woff') format('woff'),
       url('https://fonts.cdnfonts.com/s/57864/CreatoDisplay-Medium.woff') format('woff');
  font-display: swap;
}
@font-face {
  font-family: 'Creato Display';
  font-style: normal;
  font-weight: 700;
  src: url('../assets/fonts/CreatoDisplay-Bold.woff') format('woff'),
       url('https://fonts.cdnfonts.com/s/57864/CreatoDisplay-Bold.woff') format('woff');
  font-display: swap;
}
@font-face {
  font-family: 'Creato Display';
  font-style: normal;
  font-weight: 800;
  src: url('../assets/fonts/CreatoDisplay-ExtraBold.woff') format('woff'),
       url('https://fonts.cdnfonts.com/s/57864/CreatoDisplay-ExtraBold.woff') format('woff');
  font-display: swap;
}
@font-face {
  font-family: 'Creato Display';
  font-style: normal;
  font-weight: 900;
  src: url('../assets/fonts/CreatoDisplay-Black.woff') format('woff'),
       url('https://fonts.cdnfonts.com/s/57864/CreatoDisplay-Black.woff') format('woff');
  font-display: swap;
}

@font-face {
  font-family: 'Creato Pro';
  font-style: normal;
  font-weight: 400;
  src: url('../assets/fonts/CreatoDisplay-Regular.woff') format('woff');
  font-display: swap;
}
@font-face {
  font-family: 'Creato Pro';
  font-style: normal;
  font-weight: 500;
  src: url('../assets/fonts/CreatoDisplay-Medium.woff') format('woff');
  font-display: swap;
}
@font-face {
  font-family: 'Creato Pro';
  font-style: normal;
  font-weight: 700;
  src: url('../assets/fonts/CreatoDisplay-Bold.woff') format('woff');
  font-display: swap;
}
@font-face {
  font-family: 'Creato Pro';
  font-style: normal;
  font-weight: 800;
  src: url('../assets/fonts/CreatoDisplay-ExtraBold.woff') format('woff');
  font-display: swap;
}

/* Apple Garamond with system & high-grade editorial serif fallbacks */
@font-face {
  font-family: 'Apple Garamond';
  font-style: normal;
  font-weight: 400;
  src: local('Apple Garamond'), local('EB Garamond'), local('Cormorant Garamond');
  font-display: swap;
}
@font-face {
  font-family: 'Apple Garamond';
  font-style: italic;
  font-weight: 400;
  src: local('Apple Garamond Italic'), local('EB Garamond Italic'), local('Cormorant Garamond Italic');
  font-display: swap;
}
@font-face {
  font-family: 'Apple Garamond';
  font-style: normal;
  font-weight: 600;
  src: local('Apple Garamond SemiBold'), local('EB Garamond SemiBold'), local('Cormorant Garamond SemiBold');
  font-display: swap;
}
@font-face {
  font-family: 'Apple Garamond';
  font-style: normal;
  font-weight: 700;
  src: local('Apple Garamond Bold'), local('EB Garamond Bold'), local('Cormorant Garamond Bold');
  font-display: swap;
}

:root {
  /* Architectural Dark Moss / Obsidian Palette */
  --bg-primary: #060706;
  --bg-secondary: #0B0D0B;
  --bg-surface: #111311;
  --bg-surface-elevated: #161A16;
  --bg-surface-hover: #1D221D;
  
  /* High-Contrast Typography */
  --text-primary: #F4F4F2;
  --text-secondary: #9E9EA4;
  --text-muted: #5E5E66;
  --text-inverse: #060706;

  /* Official ALAFRAME Electric Acid Lime Accent */
  --accent: #B8FF00;
  --accent-hover: #CCFF00;
  --accent-subtle: rgba(184, 255, 0, 0.12);
  --accent-glow: rgba(184, 255, 0, 0.28);
  --accent-border: rgba(184, 255, 0, 0.35);

  /* Precise Architectural Borders */
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-medium: rgba(255, 255, 255, 0.14);
  --border-strong: rgba(255, 255, 255, 0.26);

  /* Typography Stacks */
  /* Display: Apple Garamond with high-end editorial web fallbacks (Used for highlighted titles/words) */
  --font-display: "Apple Garamond", "EB Garamond", "Cormorant Garamond", Garamond, Georgia, serif;
  /* Creato Pro / Creato Display for Modern Geometric Editorial UI & Secondary Typography */
  --font-creato: 'Creato Display', 'Creato Pro', -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  /* UI & Body: Creato Pro as the website's secondary font */
  --font-body: 'Creato Display', 'Creato Pro', -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* Fluid Typographic Scale */
  --text-2xs: 0.6875rem;    /* 11px */
  --text-xs: 0.8125rem;     /* 13px */
  --text-sm: 0.9375rem;     /* 15px */
  --text-base: 1.0625rem;   /* 17px */
  --text-lg: 1.25rem;       /* 20px */
  --text-xl: 1.5rem;        /* 24px */
  --text-2xl: clamp(1.75rem, 2.5vw, 2.35rem);   /* 28-38px */
  --text-3xl: clamp(2.35rem, 4.2vw, 3.4rem);    /* 38-54px */
  --text-4xl: clamp(3.1rem, 6vw, 4.85rem);       /* 50-78px */
  --text-hero: clamp(3.25rem, 6.5vw, 5.8rem);    /* 52-93px */

  /* Spacing Rhythm */
  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4.5rem;
  --space-4xl: 6.5rem;
  --space-5xl: 9rem;

  /* Layout Widths */
  --container-max: 1380px;
  --container-wide: 1560px;
  --container-pad: clamp(1.25rem, 4vw, 3.5rem);

  /* Elevation & Shadows */
  --shadow-card: 0 20px 40px -15px rgba(0, 0, 0, 0.8);
  --shadow-modal: 0 30px 80px -10px rgba(0, 0, 0, 0.95);
  --shadow-glow: 0 0 45px rgba(184, 255, 0, 0.15);

  /* Animation Timings */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 200ms;
  --duration-normal: 350ms;
  --duration-slow: 600ms;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  background-color: var(--bg-primary);
  /* Subtle, barely perceptible atmospheric deep-moss/obsidian radial gradient */
  background: radial-gradient(circle at 50% 10%, rgba(20, 38, 18, 0.16) 0%, #060706 65%), #060706;
  background-attachment: fixed;
  color: var(--text-primary);
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Headings: Editorial Garamond Display */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  text-wrap: balance;
}

p {
  color: var(--text-secondary);
  line-height: 1.65;
  font-weight: 400;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out-expo);
}

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

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

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* Selection */
::selection {
  background: var(--accent);
  color: #000000;
}

/* Accent Highlight Utility */
.accent-lime {
  color: var(--accent);
  font-style: italic;
  font-weight: 600;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

.section-padding {
  padding-top: var(--space-4xl);
  padding-bottom: var(--space-4xl);
}

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

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

.section-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: var(--accent);
  border-radius: 50%;
}

.section-label.centered {
  justify-content: center;
}

.section-title {
  font-size: var(--text-3xl);
  max-width: 24ch;
  margin-bottom: var(--space-md);
}

.section-header.centered .section-title {
  margin-left: auto;
  margin-right: auto;
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 50ch;
  line-height: 1.5;
}

.section-header.centered .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* Technical Monospace Elements */
.mono-tag {
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--border-subtle);
  background-color: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  backdrop-filter: blur(8px);
}

.badge-spec {
  border-color: rgba(184, 255, 0, 0.35);
  background-color: rgba(184, 255, 0, 0.08);
  color: var(--accent);
}

.badge-spec::before {
  content: '';
  width: 5px;
  height: 5px;
  background-color: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--accent);
}

.badge-format {
  border-color: var(--border-medium);
  color: var(--text-primary);
  background-color: rgba(255, 255, 255, 0.06);
}

/* Primary Architectural Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.95rem 1.9rem;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 4px;
  transition: all var(--duration-fast) var(--ease-out-expo);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--accent);
  color: #000000;
  border: 1px solid var(--accent);
  font-weight: 700;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(184, 255, 0, 0.35);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  background-color: rgba(184, 255, 0, 0.05);
  transform: translateY(-2px);
}

.btn-icon {
  width: 14px;
  height: 14px;
  transition: transform var(--duration-fast) var(--ease-out-expo);
}

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

/* Accessibility Focus States */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
