/* ============================================================
   SOFT & ARTS — Design System: "Kinetic Architect"
   theme.css — Custom Properties, Typography, Resets, Utilities
   ============================================================ */

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

/* ------------------------------------------------------------
   1. COLOR TOKENS
   Rule: Yellow = Action, Blue/Purple = Information/Tech
   Rule: outline-variant always at 15% opacity ("Ghost Border")
   ------------------------------------------------------------ */
:root {
  /* Surfaces — layered from dark to light */
  --color-background:                #131313;
  --color-surface:                   #131313;
  --color-surface-variant:           rgba(53, 53, 52, 0.4);   /* glassmorphism only */
  --color-surface-container-low:     #1C1B1B;
  --color-surface-container-high:    #2A2A2A;
  --color-surface-container-highest: #353534;

  /* Primary — Yellow "Action" */
  --color-primary:                   #F5E700;
  --color-primary-fixed:             #F5E700;
  --color-primary-fixed-dim:         #D7CA00;
  --color-on-primary:                #1F1C00;
  --color-on-primary-fixed:          #1F1C00;

  /* Secondary — Blue/Purple "Information/Tech" */
  --color-secondary:                 #C0C1FF;
  --color-secondary-container:       #373A9B;
  --color-on-secondary-container:    #ABAFFF;

  /* On-surface text */
  --color-on-surface:                #E5E2E1;
  --color-on-surface-variant:        #CCC7AA;

  /* Outline — Ghost Border rule: max 15% opacity */
  --color-outline-variant:           rgba(74, 71, 49, 0.15);

  /* Spacing scale */
  --space-section:   7.5rem;    /* 120px — minimum between sections */
  --space-section-lg: 12.5rem; /* 200px — hero and premium sections */

  /* Border radius — "Architect" sharp corners */
  --radius-sm:    0.25rem;   /* 4px — ROUND_FOUR — default for all UI elements */
  --radius-circle: 50%;      /* only for avatar/icon containers */

  /* Transitions */
  --transition-base:   200ms ease;
  --transition-slow:   300ms ease;
  --transition-xslow:  700ms ease;
}

/* ------------------------------------------------------------
   2. RESET & BASE
   ------------------------------------------------------------ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  background-color: var(--color-background);
  color: var(--color-on-surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Selection highlight */
  --webkit-user-select: text;
}

::selection {
  background-color: var(--color-primary);
  color: var(--color-on-primary);
}

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

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

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

ul, ol {
  list-style: none;
}

/* ------------------------------------------------------------
   3. TYPOGRAPHY SCALE — Space Grotesk tokens
   ------------------------------------------------------------ */

/* Display — Hero headlines */
.text-display {
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

/* Headline — Section titles */
.text-headline {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

/* Headline secondary */
.text-headline-sm {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

/* Title — Card headings, labels */
.text-title {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Body */
.text-body {
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.7;
}

.text-body-sm {
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.6;
}

/* Label — nav items, badges, tags */
.text-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.text-label-sm {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* Watermark / ghost text */
.text-watermark {
  font-size: clamp(3rem, 12vw, 8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: rgba(229, 226, 225, 0.04);
  line-height: 1;
  user-select: none;
  pointer-events: none;
}

/* Color utilities */
.text-primary   { color: var(--color-primary); }
.text-secondary { color: var(--color-secondary); }
.text-on-surface { color: var(--color-on-surface); }
.text-muted     { color: var(--color-on-surface-variant); }
.text-dim       { color: rgba(204, 199, 170, 0.4); }

/* ------------------------------------------------------------
   4. LAYOUT UTILITIES
   ------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

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

.section-padding {
  padding-block: var(--space-section);
}

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

/* Grid system */
.grid { display: grid; }
.grid-2  { grid-template-columns: repeat(2, 1fr); }
.grid-4  { grid-template-columns: repeat(4, 1fr); }
.grid-6  { grid-template-columns: repeat(6, 1fr); }
.grid-12 { grid-template-columns: repeat(12, 1fr); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start  { align-items: flex-start; }
.items-end    { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
.gap-4  { gap: 1rem; }
.gap-6  { gap: 1.5rem; }
.gap-8  { gap: 2rem; }
.gap-12 { gap: 3rem; }

.relative { position: relative; }
.absolute { position: absolute; }
.fixed    { position: fixed; }
.inset-0  { inset: 0; }
.z-0  { z-index: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-50 { z-index: 50; }

.overflow-hidden { overflow: hidden; }
.w-full  { width: 100%; }
.h-full  { height: 100%; }
.min-h-screen { min-height: 100vh; }

/* Responsive show/hide */
.hidden { display: none !important; }

@media (min-width: 768px) {
  .md\:hidden { display: none !important; }
  .md\:grid   { display: grid !important; }
  .md\:block  { display: block !important; }
}

/* nav links e hamburger: soglia 1024px */
@media (min-width: 1024px) {
  .md\:flex   { display: flex !important; }
}

@media (max-width: 767px) {
  .sm\:hidden { display: none !important; }
}

/* ------------------------------------------------------------
   5. SURFACE BACKGROUNDS
   ------------------------------------------------------------ */
.bg-surface          { background-color: var(--color-surface); }
.bg-surface-low      { background-color: var(--color-surface-container-low); }
.bg-surface-high     { background-color: var(--color-surface-container-high); }
.bg-surface-highest  { background-color: var(--color-surface-container-highest); }
.bg-secondary-container { background-color: var(--color-secondary-container); }
.bg-primary          { background-color: var(--color-primary); }

/* ------------------------------------------------------------
   6. SIGNATURE COMPONENTS & UTILITIES
   ------------------------------------------------------------ */

/* Glass Navigation — Kinetic Architect */
.glass-nav {
  background-color: var(--color-surface-variant);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* Kinetic Gradient — Primary CTAs */
.gradient-primary {
  background: linear-gradient(135deg, var(--color-primary-fixed) 0%, var(--color-primary-fixed-dim) 100%);
}

/* Secondary Electric Gradient */
.gradient-secondary {
  background: linear-gradient(135deg, var(--color-secondary-container) 0%, var(--color-secondary) 100%);
}

/* Ghost Border — only for high-density utility areas */
.ghost-border {
  border: 1px solid var(--color-outline-variant);
}

.ghost-border-b {
  border-bottom: 1px solid var(--color-outline-variant);
}

/* Ambient Glow — floating elements */
.ambient-shadow {
  box-shadow: 0 0 40px 0 rgba(229, 226, 225, 0.06);
}

/* Kinetic Depth — primary buttons */
.kinetic-glow {
  box-shadow: 0 0 5px var(--color-primary), 0 0 20px rgba(245, 231, 0, 0.2);
}

/* Purple glow — secondary elements */
.electric-glow {
  box-shadow: 0 0 15px rgba(55, 58, 155, 0.3);
}

/* Architectural Split — bespoke layout component */
.architectural-split {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0;
  align-items: start;
  position: relative;
}

/* Blob glow backgrounds */
.blob-primary {
  position: absolute;
  width: 24rem;
  height: 24rem;
  background-color: var(--color-primary);
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  pointer-events: none;
}

.blob-secondary {
  position: absolute;
  width: 24rem;
  height: 24rem;
  background-color: var(--color-secondary-container);
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.2;
  pointer-events: none;
}
