/* =========================================================
   PROZESSIONELL DESIGN SYSTEM
   ========================================================= */

:root {
  /* Brand Colors */
  --color-primary: #00E5FF;
  --color-primary-strong: #00cfe6;
  --color-primary-soft: rgba(0, 229, 255, 0.12);

  --color-secondary: #A2FF00;
  --color-secondary-strong: #8fe000;
  --color-secondary-soft: rgba(162, 255, 0, 0.14);

  --color-tertiary: #1A237E;
  --color-tertiary-soft: #a5abff;
  --color-tertiary-muted: rgba(26, 35, 126, 0.18);

  /* Neutral / Surface */
  --color-background: #0D1117;
  --color-surface: #10141a;
  --color-surface-low: #181c22;
  --color-surface-card: #1c2026;
  --color-surface-high: #262a31;
  --color-surface-highest: #31353c;

  /* Text */
  --color-text: #dfe2eb;
  --color-text-muted: #bbc9cc;
  --color-text-soft: #869396;

  /* Utility */
  --color-outline-soft: rgba(60, 73, 76, 0.2);
  --color-white-soft: rgba(255, 255, 255, 0.06);
  --color-danger: #ffb4ab;

  /* Typography */
  --font-headline: "Space Grotesk", sans-serif;
  --font-body: "Manrope", sans-serif;
  --font-label: "Inter", sans-serif;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1.25rem;
  --radius-pill: 999px;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Layout */
  --container-width: 1200px;

  /* Effects */
  --blur-glass: blur(24px);
  --shadow-soft: 0 20px 60px rgba(0, 0, 0, 0.18);
  --glow-primary: 0 0 40px rgba(0, 229, 255, 0.12);
  --glow-secondary: 0 0 40px rgba(162, 255, 0, 0.10);

  /* Transitions */
  --transition-fast: 180ms ease;
  --transition-base: 280ms ease;
}

/* =========================================================
   RESET / BASE
   ========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

::selection {
  background: rgba(0, 229, 255, 0.22);
  color: #ffffff;
}

/* =========================================================
   TYPOGRAPHY
   ========================================================= */

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--space-4);
  font-family: var(--font-headline);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #ffffff;
}

h1 {
  font-size: clamp(2.1rem, 8vw, 5.5rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.75rem, 6vw, 3.5rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.2rem, 4.5vw, 2rem);
  font-weight: 700;
}

p {
  margin: 0 0 var(--space-4);
  color: var(--color-text-muted);
  font-size: 1rem;
}

.label,
.eyebrow {
  font-family: var(--font-label);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-soft);
}

/* =========================================================
   LAYOUT
   ========================================================= */

.container {
  width: min(100% - 1.5rem, var(--container-width));
  margin-inline: auto;
}

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

.grid-2,
.grid-3,
.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

@media (min-width: 768px) {
  .container {
    width: min(100% - 2rem, var(--container-width));
  }

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

  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-10);
  }
}

@media (min-width: 1024px) {
  .section {
    padding-block: var(--space-24);
  }

  .grid-2 {
    gap: var(--space-12);
  }

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

  .footer-top {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 3rem;
  }
}

/* =========================================================
   SURFACES / CARDS
   ========================================================= */

.card {
  background: var(--color-surface-card);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-soft);
}

.card-elevated {
  background: var(--color-surface-high);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-soft), var(--glow-primary);
}

.card-glass {
  background: rgba(16, 20, 26, 0.72);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-soft);
}

.card-nested {
  background: var(--color-surface-highest);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}

/* =========================================================
   BUTTONS
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 3rem;
  padding: 0.85rem 1.4rem;
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-headline);
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform var(--transition-fast), background var(--transition-base), box-shadow var(--transition-base), color var(--transition-base);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--color-primary);
  color: #071015;
  box-shadow: var(--glow-primary);
}

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

.btn-secondary {
  background: var(--color-secondary);
  color: #111700;
  box-shadow: var(--glow-secondary);
}

.btn-secondary:hover {
  background: var(--color-secondary-strong);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text);
}

.btn-ghost:hover {
  background: var(--color-surface-highest);
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  box-shadow: inset 0 0 0 1px var(--color-outline-soft);
}

.btn-outline:hover {
  background: var(--color-surface-high);
}

/* =========================================================
   BADGES / CHIPS
   ========================================================= */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-pill);
  background: var(--color-surface-highest);
  font-family: var(--font-label);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge-primary {
  color: var(--color-primary);
  background: rgba(0, 229, 255, 0.10);
}

.badge-secondary {
  color: var(--color-secondary);
  background: rgba(162, 255, 0, 0.10);
}

.badge-tertiary {
  color: #d7dbff;
  background: rgba(165, 171, 255, 0.16);
}

/* =========================================================
   INPUTS
   ========================================================= */

.input,
.textarea {
  width: 100%;
  background: var(--color-surface-low);
  color: var(--color-text);
  border: none;
  border-radius: var(--radius-lg);
  padding: 1rem 1rem 0.95rem;
  outline: none;
  box-shadow: inset 0 -2px 0 transparent;
  transition: box-shadow var(--transition-base), background var(--transition-base);
}

.input::placeholder,
.textarea::placeholder {
  color: var(--color-text-soft);
}

.input:focus,
.textarea:focus {
  background: var(--color-surface-card);
  box-shadow: inset 0 -2px 0 var(--color-primary), 0 0 24px rgba(0, 229, 255, 0.08);
}

.textarea {
  min-height: 140px;
  resize: vertical;
}

/* =========================================================
   NAVIGATION
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(13, 17, 23, 0.72);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  border-bottom: 1px solid var(--color-outline-soft);
}

.nav-shell {
  position: relative;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.5rem;
  gap: var(--space-4);
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.logo {
  height: 42px;
  width: auto;
  display: block;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 12px;
  background: var(--color-surface-high);
  color: #fff;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-links {
  display: none;
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 0;
  right: 0;
  z-index: 999;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-2);
  padding: var(--space-3);
  border-radius: var(--radius-xl);
  background: rgba(16, 20, 26, 0.96);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  border: 1px solid var(--color-outline-soft);
  box-shadow: var(--shadow-soft);
}

.nav-links.is-open {
  display: flex;
}

.nav-links a {
  display: block;
  padding: 0.95rem 1rem;
  border-radius: var(--radius-lg);
  background: var(--color-surface-card);
  font-family: var(--font-headline);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--color-text);
  transition: background var(--transition-base), color var(--transition-base), transform var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.active {
  color: #ffffff;
  background: var(--color-surface-high);
}

.nav-cta {
  width: 100%;
  margin-top: var(--space-2);
}

@media (min-width: 1024px) {
  .nav {
    min-height: 5rem;
    gap: var(--space-6);
  }

  .logo {
    height: 52px;
  }

  .nav-toggle {
    display: none;
  }

  .nav-links {
    display: flex;
    position: static;
    width: auto;
    flex-direction: row;
    align-items: center;
    gap: var(--space-6);
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .nav-links a {
    padding: 0;
    background: transparent;
    color: var(--color-text-soft);
  }

  .nav-links a:hover,
  .nav-links a.active {
    background: transparent;
    color: #ffffff;
  }

  .nav-cta {
    width: auto;
    margin-top: 0;
    margin-left: var(--space-2);
    padding: 0.85rem 1.4rem !important;
    background: var(--color-secondary) !important;
    color: #111700 !important;
  }
}

/* =========================================================
   HERO / HIGHLIGHTS
   ========================================================= */

.hero {
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% auto auto -10%;
  width: 36rem;
  height: 36rem;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.12) 0%, rgba(0, 229, 255, 0) 70%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -20% auto;
  width: 28rem;
  height: 28rem;
  background: radial-gradient(circle, rgba(162, 255, 0, 0.08) 0%, rgba(162, 255, 0, 0) 72%);
  pointer-events: none;
}

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

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

.text-tertiary {
  color: var(--color-tertiary-soft);
}

/* =========================================================
   UTILITIES
   ========================================================= */

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

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

.surface {
  background: var(--color-surface);
}

.surface-low {
  background: var(--color-surface-low);
}

.surface-card {
  background: var(--color-surface-card);
}

.surface-high {
  background: var(--color-surface-high);
}

.surface-highest {
  background: var(--color-surface-highest);
}

.glow-primary {
  box-shadow: var(--glow-primary);
}

.glow-secondary {
  box-shadow: var(--glow-secondary);
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
  padding: 4rem 0 2.5rem;
  border-top: 1px solid var(--color-outline-soft);
}

.footer-stack {
  display: grid;
  gap: 3rem;
}

.footer-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.footer-text {
  max-width: 28rem;
  margin: 0.75rem 0 1.25rem;
}

.footer-kigent {
  padding: 0.9rem 1rem;
  opacity: 0.9;
}

.footer-label-space {
  margin-bottom: 0.4rem;
}

.footer-kigent-text {
  margin: 0 0 0.4rem 0;
}

.footer-heading {
  display: block;
  margin-bottom: 1rem;
}

.footer-links,
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-contact {
  margin-bottom: 1.5rem;
}

.footer-divider {
  height: 1px;
  background: var(--color-outline-soft);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-meta {
  font-size: 0.85rem;
  opacity: 0.7;
}

@media (max-width: 767px) {
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
