/* ==========================================================================
   ASOGFX — Visual Identity & Design System
   Calm, minimal, premium creative-tech studio aesthetic
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Root Variables & Color Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Light Mode (Default) */
  --bg-color: #F4F7FB;
  --surface-primary: #FFFFFF;
  --surface-secondary: #F7F9FC;
  --text-primary: #162033;
  --text-muted: #627087;
  --border-color: #DFE6F0;
  --primary-blue: #2563EB;
  --strong-blue: #1D4ED8;
  --soft-blue: #EAF1FF;

  /* Shared Identity Gradient (Used strictly for the hero identity moment) */
  --identity-gradient: linear-gradient(135deg, #2563EB 0%, #4F46E5 52%, #6D28D9 100%);
  --identity-glow: rgba(37, 99, 235, 0.12);

  /* Geometry & Radii (9px - 18px range) */
  --radius-sm: 9px;
  --radius-md: 12px;
  --radius-lg: 16px;

  /* Subtle, restrained shadows */
  --shadow-subtle: 0 1px 3px rgba(22, 32, 51, 0.04), 0 4px 12px rgba(22, 32, 51, 0.03);
  --shadow-pill: 0 1px 3px rgba(22, 32, 51, 0.04), 0 6px 18px rgba(22, 32, 51, 0.04);
  --shadow-pill-hover: 0 2px 6px rgba(22, 32, 51, 0.06), 0 12px 28px rgba(37, 99, 235, 0.09);

  /* Motion & Easing */
  --ease-standard: cubic-bezier(0.22, 1, 0.36, 1);
  --duration-fast: 180ms;
  --duration-normal: 240ms;
  --duration-slow: 260ms;

  /* Layout */
  --max-width: 1120px;
  --gutter: 20px;
}

/* Dark Mode Tokens */
[data-theme="dark"] {
  --bg-color: #0B1120;
  --surface-primary: #121B2D;
  --surface-secondary: #172238;
  --text-primary: #EFF5FF;
  --text-muted: #A7B4C8;
  --border-color: #2B3951;
  --primary-blue: #60A5FA;
  --strong-blue: #93C5FD;
  --soft-blue: #172D50;

  --identity-glow: rgba(96, 165, 250, 0.16);

  --shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.25), 0 4px 12px rgba(0, 0, 0, 0.2);
  --shadow-pill: 0 1px 4px rgba(0, 0, 0, 0.3), 0 8px 22px rgba(0, 0, 0, 0.25);
  --shadow-pill-hover: 0 2px 8px rgba(0, 0, 0, 0.4), 0 14px 30px rgba(96, 165, 250, 0.1);
}

/* Automatic OS preference fallbacks */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg-color: #0B1120;
    --surface-primary: #121B2D;
    --surface-secondary: #172238;
    --text-primary: #EFF5FF;
    --text-muted: #A7B4C8;
    --border-color: #2B3951;
    --primary-blue: #60A5FA;
    --strong-blue: #93C5FD;
    --soft-blue: #172D50;

    --identity-glow: rgba(96, 165, 250, 0.16);

    --shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.25), 0 4px 12px rgba(0, 0, 0, 0.2);
    --shadow-pill: 0 1px 4px rgba(0, 0, 0, 0.3), 0 8px 22px rgba(0, 0, 0, 0.25);
    --shadow-pill-hover: 0 2px 8px rgba(0, 0, 0, 0.4), 0 14px 30px rgba(96, 165, 250, 0.1);
  }
}

/* --------------------------------------------------------------------------
   2. Reset & Typography Baseline
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  transition: background-color var(--duration-normal) var(--ease-standard),
              color var(--duration-normal) var(--ease-standard);
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  background-color: var(--bg-color);
}

/* Soft, calm ambient radial glow */
.ambient-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle at 50% 32%, var(--soft-blue) 0%, transparent 68%);
  opacity: 0.55;
}

/* --------------------------------------------------------------------------
   3. Main App Container
   -------------------------------------------------------------------------- */
.app-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* --------------------------------------------------------------------------
   4. Minimal Header
   -------------------------------------------------------------------------- */
.site-header {
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  transition: border-color var(--duration-normal) var(--ease-standard);
}

.brand-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--surface-primary);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-subtle);
  transition: transform var(--duration-fast) var(--ease-standard),
              border-color var(--duration-fast) var(--ease-standard);
}

.brand-identity:hover .brand-mark {
  transform: translateY(-2px);
  border-color: var(--primary-blue);
}

.brand-name {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

/* Theme Switcher Button */
.theme-toggle-btn {
  background: var(--surface-primary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-subtle);
  transition: transform var(--duration-fast) var(--ease-standard),
              border-color var(--duration-fast) var(--ease-standard),
              background-color var(--duration-fast) var(--ease-standard),
              color var(--duration-fast) var(--ease-standard);
}

.theme-toggle-btn:hover {
  transform: translateY(-2px);
  border-color: var(--primary-blue);
  color: var(--primary-blue);
}

.theme-toggle-btn:focus-visible {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}

.theme-toggle-btn svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.75;
}

.icon-dark { display: none; }
[data-theme="dark"] .icon-dark { display: block; }
[data-theme="dark"] .icon-light { display: none; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-dark { display: block; }
  :root:not([data-theme="light"]) .icon-light { display: none; }
}

/* --------------------------------------------------------------------------
   5. Hero Section (Dominant Identity Moment)
   -------------------------------------------------------------------------- */
.hero-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 0 72px;
  position: relative;
}

.hero-content {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Understated Studio Pill */
.studio-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: var(--surface-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  box-shadow: var(--shadow-subtle);
  margin-bottom: 32px;
  transition: border-color var(--duration-fast) var(--ease-standard);
}

/* Dominant ASOGFX Monogram & Wordmark */
.hero-identity-lockup {
  margin-bottom: 20px;
  position: relative;
}

.identity-brand-title {
  font-size: clamp(4.2rem, 12vw, 8rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.065em;
  background: var(--identity-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  user-select: none;
  filter: drop-shadow(0 10px 32px var(--identity-glow));
}

/* Heading: Website Under Construction */
.hero-heading {
  font-size: clamp(2.55rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.055em;
  color: var(--text-primary);
  margin-bottom: 24px;
  max-width: 760px;
}

.hero-description {
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 44px;
}

/* --------------------------------------------------------------------------
   6. Refined Contact Action
   -------------------------------------------------------------------------- */
.contact-action-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
}

.contact-pill {
  background: var(--surface-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 20px;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: var(--shadow-pill);
  transition: transform var(--duration-fast) var(--ease-standard),
              border-color var(--duration-fast) var(--ease-standard),
              box-shadow var(--duration-fast) var(--ease-standard);
}

.contact-pill:hover {
  transform: translateY(-2px);
  border-color: var(--primary-blue);
  box-shadow: var(--shadow-pill-hover);
}

.contact-pill:active {
  transform: translateY(0);
}

.contact-pill:focus-visible {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}

.contact-label {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.contact-divider {
  color: var(--border-color);
  font-weight: 300;
}

.contact-email {
  font-family: inherit;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.contact-pill:hover .contact-email {
  color: var(--primary-blue);
}

.contact-icon {
  display: flex;
  align-items: center;
  color: var(--text-muted);
  transition: color var(--duration-fast) var(--ease-standard),
              transform var(--duration-fast) var(--ease-standard);
}

.contact-icon svg {
  width: 15px;
  height: 15px;
  stroke-width: 1.75;
}

.contact-pill:hover .contact-icon {
  color: var(--primary-blue);
  transform: scale(1.05);
}

/* --------------------------------------------------------------------------
   7. Minimal Footer
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border-color);
  padding: 32px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  transition: border-color var(--duration-normal) var(--ease-standard);
}

.footer-left {
  font-weight: 500;
  color: var(--text-muted);
}

.footer-right {
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   8. Polite Toast Notification
   -------------------------------------------------------------------------- */
.toast-container {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: var(--surface-primary);
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--primary-blue);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-pill-hover);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  opacity: 0;
  transform: translateY(12px) scale(0.97);
  transition: opacity var(--duration-slow) var(--ease-standard),
              transform var(--duration-slow) var(--ease-standard);
}

.toast.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.toast-icon {
  color: var(--primary-blue);
  display: flex;
  align-items: center;
}

/* --------------------------------------------------------------------------
   9. Responsive Design System
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
  :root {
    --gutter: 14px;
  }

  .site-header {
    height: 76px;
  }

  .hero-section {
    padding: 48px 0 40px;
  }

  .studio-tag {
    font-size: 0.72rem;
    padding: 5px 12px;
    margin-bottom: 24px;
  }

  .hero-heading {
    margin-bottom: 18px;
  }

  .hero-description {
    font-size: 1rem;
    margin-bottom: 36px;
  }

  .contact-pill {
    padding: 10px 16px;
    font-size: 0.875rem;
    width: 100%;
    justify-content: center;
  }

  .site-footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 24px 0;
  }

  .toast-container {
    left: 14px;
    right: 14px;
    bottom: 14px;
  }
}

/* --------------------------------------------------------------------------
   10. Reduced Motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .contact-pill:hover, .theme-toggle-btn:hover, .brand-mark:hover {
    transform: none !important;
  }
}
