/* ============================================
   REVO ENDÜSTRI – MAIN CSS
   Theme, Reset, Typography, Layout
   ============================================ */

/* --- CSS Custom Properties (Theme: "Precision Light") ---
   Bright, mature engineering language: white/mist grounds, navy ink
   typography, hairline rules from technical-drawing culture. The primary
   blue #00457C is sampled from the actual REVO logo artwork. */
:root {
  /* Colors — "Liquid Precision" v3.1 palette, sampled from the brand guide.
     White/mist is the ground; navy is the lead; Sky #009FE3 is used only as
     LIGHT (thin lines, glowing dots, low-opacity atmosphere) — never a big
     saturated fill. Red is a =<3% micro-accent, never a ground. */
  --white: #ffffff;
  --mist: #eef2f6;
  --atmo: #f4f8fc;

  --bg-primary: #eef3f8;
  --bg-secondary: #e6edf4;
  --bg-surface: #ffffff;
  --bg-surface-hover: #f2f6fa;

  /* Glass surfaces (frosted white + one navy region per page) */
  --glass-1: linear-gradient(135deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.44));
  --glass-2: linear-gradient(135deg, rgba(255, 255, 255, 0.60), rgba(255, 255, 255, 0.32));
  --glass-navy: linear-gradient(150deg, rgba(0, 43, 78, 0.94), rgba(0, 27, 51, 0.90));
  --glass-border: rgba(255, 255, 255, 0.85);
  --glass-ring: rgba(0, 69, 124, 0.07);
  --bg-glass: rgba(255, 255, 255, 0.72);
  --bg-glass-hover: rgba(255, 255, 255, 0.90);

  --color-primary: #00457c;
  --color-primary-dim: rgba(0, 69, 124, 0.08);
  --color-primary-glow: rgba(0, 69, 124, 0.20);
  --deep: #002b4e;
  --abyss: #001b33;
  --sky: #009fe3;
  --sky-dim: rgba(0, 159, 227, 0.14);
  --red: #b23a3a;
  --red-dim: rgba(178, 58, 58, 0.12);

  /* Legacy aliases retired -> repointed onto the brand palette so every
     existing var() usage lands on a brand colour (green/steel are gone). */
  --color-secondary: var(--sky);
  --color-secondary-dim: var(--sky-dim);
  --color-accent: var(--deep);
  --color-accent-dim: rgba(0, 43, 78, 0.12);

  --text-primary: #0b2946;
  --text-secondary: #3d5471;
  --text-muted: #706f6f;
  --ink: #10161c;
  --steel: #706f6f;
  --text-on-primary: #ffffff;

  --border-color: rgba(11, 41, 70, 0.12);
  --border-glow: rgba(0, 69, 124, 0.30);

  /* Hairline set (technical drawing) */
  --hairline: #e2e9f0;
  --hairline-faint: rgba(11, 41, 70, 0.06);

  /* Typography — Barlow family + JetBrains Mono (brand v3.1) */
  --font-heading: 'Barlow Semi Condensed', 'Inter', sans-serif;
  --font-body: 'Barlow', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', ui-monospace, monospace;

  /* Spacing */
  --section-padding: 120px;
  --container-width: 1280px;
  --container-padding: 24px;

  /* Borders */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  /* Shadows — soft navy-tinted elevation, never black, never neon glow */
  --shadow-glow-sm: 0 1px 2px rgba(0, 43, 78, 0.05), 0 4px 14px rgba(0, 43, 78, 0.08);
  --shadow-glow-md: 0 2px 8px rgba(0, 43, 78, 0.05), 0 16px 48px rgba(0, 43, 78, 0.10);
  --shadow-glow-lg: 0 4px 16px rgba(0, 43, 78, 0.06), 0 32px 80px rgba(0, 43, 78, 0.14);
  --shadow-card: 0 2px 8px rgba(0, 43, 78, 0.05), 0 16px 48px rgba(0, 43, 78, 0.10);
  --shadow-1: 0 2px 8px rgba(0, 43, 78, 0.05), 0 16px 48px rgba(0, 43, 78, 0.10);
  --shadow-2: 0 4px 16px rgba(0, 43, 78, 0.06), 0 32px 80px rgba(0, 43, 78, 0.14);

  /* Navbar */
  --navbar-height: 72px;

  /* Z-index layers */
  --z-plexus: 0;
  --z-content: 1;
  --z-navbar: 100;
  --z-modal: 200;
  --z-lightbox: 300;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  background-color: var(--bg-primary);
  /* Atmosphere ground (brand v3.1): cold Sky/Navy light bleeding in from the
     corners over a faint technical grid — never neon, never warm, and it
     never crowds the centre. Fixed, so it reads as calm ambient light. */
  background-image:
    radial-gradient(1100px 760px at 8% -6%, rgba(0, 159, 227, 0.13), rgba(0, 159, 227, 0) 60%),
    radial-gradient(1000px 700px at 100% 0%, rgba(0, 69, 124, 0.10), rgba(0, 69, 124, 0) 58%),
    radial-gradient(1200px 820px at 50% 116%, rgba(0, 159, 227, 0.09), rgba(0, 159, 227, 0) 60%),
    linear-gradient(rgba(0, 43, 78, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 43, 78, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, #f7fafd 0%, #eef3f8 100%);
  background-size: 100% 100%, 100% 100%, 100% 100%, 72px 72px, 72px 72px, 100% 100%;
  background-repeat: no-repeat, no-repeat, no-repeat, repeat, repeat, no-repeat;
  background-attachment: fixed, fixed, fixed, fixed, fixed, fixed;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100vw;
  min-height: 100vh;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--sky);
}

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

ul,
ol {
  list-style: none;
}

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

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

/* --- Typography --- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.02em;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.01em;
}

h4 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
}

p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 1rem;
}

.text-gradient {
  background: linear-gradient(92deg, var(--color-primary) 0%, var(--sky) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Legacy class kept in markup; glow retired in the light theme */
.text-glow {
  text-shadow: none;
}

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

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

.section {
  padding: var(--section-padding) 0;
  position: relative;
  z-index: var(--z-content);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.1rem;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 14px;
  padding: 7px 16px 7px 14px;
  background: var(--glass-1);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  backdrop-filter: blur(12px) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  box-shadow: var(--shadow-glow-sm), inset 0 1px rgba(255, 255, 255, 0.9);
}

/* Glowing Sky dot — the brand "cam çip" signature */
.section-label::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sky);
  box-shadow: 0 0 0 3px rgba(0, 159, 227, 0.16), 0 0 8px rgba(0, 159, 227, 0.7);
  flex: none;
}

/* Grid helpers */
.grid {
  display: grid;
  gap: 24px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* --- Utility --- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.overflow-hidden {
  overflow: hidden;
}

/* Divider line — hairline that peaks at center, drawing-sheet style */
.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--hairline), transparent);
  margin: 0;
}

/* Selection color */
::selection {
  background: var(--color-primary);
  color: #ffffff;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: rgba(11, 41, 70, 0.22);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(11, 41, 70, 0.38);
}

/* Legacy plexus canvas mount — retired in the light theme (script tags removed) */
#plexus-canvas {
  display: none;
}