/* ============================================
   SYS-Admin
   Typografie: Space Grotesk + DM Sans
   Palette: Navy + Emerald accent
   ============================================ */

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

:root {
  /* Core */
  --navy: #0f1923;
  --navy-mid: #162231;
  --navy-light: #1e2f42;

  /* Accent */
  --accent: #10b981;
  --accent-hover: #059669;
  --accent-pale: #ecfdf5;
  --accent-subtle: rgba(16, 185, 129, 0.08);

  /* Neutrals */
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --white: #ffffff;

  /* System */
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.1);
  --ease: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--slate-600);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', 'DM Sans', sans-serif;
  color: var(--navy);
  line-height: 1.2;
  font-weight: 700;
}

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

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   Typography helpers
   ============================================ */

.label {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 14px;
}
.label-light { color: var(--slate-400); }

.h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.25rem);
  letter-spacing: -0.025em;
  margin-bottom: 16px;
  max-width: 620px;
}

.intro {
  font-size: 16px;
  color: var(--slate-500);
  line-height: 1.75;
  max-width: 560px;
  margin-bottom: 48px;
}

.text-white { color: var(--white) !important; }
.text-muted-light { color: var(--slate-400) !important; }

/* ============================================
   Navigation
   ============================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.nav.scrolled {
  border-bottom-color: var(--slate-200);
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-family: 'Space Grotesk', monospace;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.logo-sys { color: var(--navy); }
.logo-dash { color: var(--slate-300); font-weight: 400; }
.logo-admin { color: var(--slate-500); font-weight: 600; }

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 32px;
}
.nav-links a {
  color: var(--slate-500);
  font-size: 14px;
  font-weight: 500;
}
.nav-links a:hover { color: var(--navy); }

.btn-nav {
  display: inline-flex;
  padding: 8px 18px !important;
  background: var(--navy);
  color: var(--white) !important;
  border-radius: 6px;
  font-size: 13px !important;
  font-weight: 600 !important;
  transition: background var(--ease);
}
.btn-nav:hover {
  background: var(--navy-light);
  color: var(--white) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.2s;
}

/* ============================================
   Hero
   ============================================ */

.hero {
  position: relative;
  padding: 140px 0 0;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 30%, rgba(16,185,129,0.04) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(15,25,35,0.02) 0%, transparent 40%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding-bottom: 64px;
}

.hero-content { position: relative; z-index: 1; }

.hero-tagline {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  letter-spacing: -0.04em;
  font-weight: 700;
  line-height: 1.08;
  margin-bottom: 20px;
}

.hero-accent {
  color: var(--accent);
}

.hero-sub {
  font-size: 17px;
  color: var(--slate-500);
  line-height: 1.75;
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--radius);
  transition: all var(--ease);
  text-decoration: none;
  cursor: pointer;
  border: none;
}

.btn-primary {
  padding: 13px 26px;
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(16,185,129,0.3);
}

.btn-ghost {
  padding: 13px 24px;
  background: transparent;
  color: var(--slate-600);
  border: 1px solid var(--slate-200);
}
.btn-ghost:hover {
  border-color: var(--slate-400);
  color: var(--navy);
}

.btn-full { width: 100%; justify-content: center; }

/* Terminal Visual */
.hero-visual {
  position: relative;
  z-index: 1;
}

.terminal {
  background: var(--navy);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,0.06);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.terminal-title {
  margin-left: auto;
  font-family: 'Space Grotesk', monospace;
  font-size: 11px;
  color: var(--slate-400);
  letter-spacing: 0.02em;
}

.terminal-body {
  padding: 20px;
  font-family: 'Space Grotesk', 'Courier New', monospace;
  font-size: 13px;
  line-height: 2;
}

.terminal-line { color: var(--slate-400); }
.t-prompt { color: var(--accent); margin-right: 8px; }
.t-success { color: var(--accent); }
.t-muted { color: var(--slate-500); }
.t-cursor {
  display: inline-block;
  animation: blink 1s step-end infinite;
  color: var(--accent);
}

@keyframes blink {
  50% { opacity: 0; }
}

/* Hero Stats */
.hero-stats {
  display: flex;
  align-items: center;
  padding: 32px 0;
  border-top: 1px solid var(--slate-200);
}

.stat {
  flex: 1;
  text-align: center;
}

.stat-num {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 13px;
  color: var(--slate-400);
  font-weight: 500;
}

.stat-sep {
  width: 1px;
  height: 36px;
  background: var(--slate-200);
}

/* ============================================
   Sections
   ============================================ */

.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--slate-50);
}

.section-dark {
  background: var(--navy);
  position: relative;
}

.section-transition-top {
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 64px;
  background: linear-gradient(to bottom, var(--white), transparent);
  pointer-events: none;
}

.section-dark .section-transition-top {
  background: linear-gradient(to bottom, var(--slate-50), transparent);
}

/* ============================================
   Services Grid
   ============================================ */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.service-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--ease);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.service-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(16,185,129,0.08);
  transform: translateY(-2px);
}

.service-icon-wrap {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-subtle);
  border-radius: 10px;
  color: var(--accent);
  margin-bottom: 16px;
  transition: all var(--ease);
}
.service-icon-wrap svg {
  width: 20px;
  height: 20px;
}
.service-card:hover .service-icon-wrap {
  background: var(--accent);
  color: var(--white);
}

.service-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.service-card p {
  font-size: 14px;
  color: var(--slate-500);
  line-height: 1.65;
  margin-bottom: 16px;
  flex: 1;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
}
.tags li {
  font-size: 11px;
  font-weight: 600;
  color: var(--slate-500);
  background: var(--slate-50);
  border: 1px solid var(--slate-100);
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: 0.02em;
}

/* ============================================
   Principles (Dark)
   ============================================ */

.principles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.principle {
  padding: 28px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  transition: border-color var(--ease);
}
.principle:hover {
  border-color: rgba(16,185,129,0.25);
}

.principle-num {
  font-family: 'Space Grotesk', monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 14px;
  letter-spacing: 0.06em;
}

.principle h3 {
  color: var(--white);
  font-size: 17px;
  margin-bottom: 8px;
}

.principle p {
  font-size: 14px;
  color: var(--slate-400);
  line-height: 1.7;
}

/* ============================================
   Audience
   ============================================ */

.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.audience-card {
  padding: 28px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
  transition: border-color var(--ease);
}
.audience-card:hover {
  border-color: var(--accent);
}

.audience-accent {
  width: 32px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin-bottom: 18px;
}

.audience-card h3 {
  font-size: 16px;
  margin-bottom: 10px;
}

.audience-card p {
  font-size: 14px;
  color: var(--slate-500);
  line-height: 1.7;
}

/* ============================================
   Testimonials
   ============================================ */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.testimonial {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.testimonial-quote {
  flex: 1;
  margin-bottom: 20px;
}
.testimonial-quote p {
  font-size: 14px;
  color: var(--slate-600);
  line-height: 1.75;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--slate-100);
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

.testimonial-author strong {
  display: block;
  color: var(--navy);
  font-size: 14px;
}
.testimonial-author span {
  font-size: 12px;
  color: var(--slate-400);
}

.trust-bar {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--slate-200);
}
.trust-note {
  font-size: 13px;
  color: var(--slate-400);
  text-align: center;
  font-style: italic;
}

/* ============================================
   Process
   ============================================ */

.process-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 40px;
  max-width: 600px;
}

.process-step {
  display: flex;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--slate-200);
}
.process-step:last-child { border-bottom: none; }

.step-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.step-body h3 {
  font-size: 16px;
  margin-bottom: 6px;
}
.step-body p {
  font-size: 14px;
  color: var(--slate-500);
  line-height: 1.7;
}

/* ============================================
   About
   ============================================ */

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: start;
}

.about-text p {
  font-size: 15px;
  color: var(--slate-500);
  margin-bottom: 14px;
  line-height: 1.8;
}

.about-sig {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--slate-200);
}

.about-photo {
  flex-shrink: 0;
}

.photo-placeholder {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--slate-100);
  border: 2px solid var(--slate-200);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-400);
}

.about-sig strong {
  display: block;
  color: var(--navy);
  font-size: 15px;
}
.about-sig span {
  display: block;
  font-size: 13px;
  color: var(--slate-400);
}
.about-company {
  font-size: 12px !important;
  color: var(--slate-400);
}

.about-facts {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fact {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
  align-items: flex-start;
}

.fact-accent {
  width: 3px;
  min-height: 100%;
  background: var(--accent);
  border-radius: 2px;
  flex-shrink: 0;
  align-self: stretch;
}

.fact strong {
  display: block;
  color: var(--navy);
  font-size: 14px;
  margin-bottom: 2px;
}
.fact p {
  font-size: 13px;
  color: var(--slate-500);
  margin: 0;
  line-height: 1.6;
}

/* ============================================
   FAQ
   ============================================ */

.faq-grid {
  max-width: 680px;
  margin-top: 40px;
}

.faq-item {
  border-bottom: 1px solid var(--slate-200);
}
.faq-item:first-child {
  border-top: 1px solid var(--slate-200);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  cursor: pointer;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  list-style: none;
  transition: color var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 20px;
  font-weight: 400;
  color: var(--slate-400);
  flex-shrink: 0;
  margin-left: 16px;
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  content: '-';
}

.faq-item summary:hover {
  color: var(--accent);
}

.faq-answer {
  padding-bottom: 20px;
}
.faq-answer p {
  font-size: 14px;
  color: var(--slate-500);
  line-height: 1.75;
}

/* ============================================
   Contact
   ============================================ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.contact-text {
  font-size: 16px;
  color: var(--slate-400);
  line-height: 1.7;
  margin-bottom: 28px;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.contact-method {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  padding: 12px 20px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  transition: all var(--ease);
}
.contact-method:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.18);
  color: var(--white);
}

.contact-address {
  padding-top: 4px;
}
.contact-address p {
  font-size: 14px;
  color: var(--slate-400);
  line-height: 1.7;
}
.contact-address strong { color: var(--white); }

.contact-note {
  margin-top: 8px;
  font-size: 13px !important;
  color: var(--accent) !important;
  font-weight: 500;
}

/* Contact Form */
.contact-form-wrap {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--slate-300);
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  transition: border-color var(--ease);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--slate-500);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-group textarea { resize: vertical; min-height: 100px; }

.form-note {
  margin-top: 12px;
  font-size: 12px;
  color: var(--slate-500);
  text-align: center;
}

/* ============================================
   Footer
   ============================================ */

.footer {
  background: var(--slate-900);
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.04);
}

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

.footer-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-logo {
  font-family: 'Space Grotesk', monospace;
  font-size: 15px;
  font-weight: 700;
}
.footer-logo .logo-sys { color: var(--white); }
.footer-logo .logo-admin { color: var(--slate-400); }

.footer-copy {
  font-size: 13px;
  color: var(--slate-500);
}

.footer-right {
  display: flex;
  gap: 24px;
}
.footer-right a {
  font-size: 13px;
  color: var(--slate-500);
}
.footer-right a:hover { color: var(--white); }

/* ============================================
   Legal Pages
   ============================================ */

.legal-page {
  padding: 140px 0 80px;
  max-width: 720px;
  margin: 0 auto;
}
.legal-page .container { max-width: 720px; }

.legal-page h1 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--slate-200);
}

.legal-page h2 {
  font-size: 1.3rem;
  margin-top: 40px;
  margin-bottom: 12px;
}

.legal-page h3 {
  font-size: 1.05rem;
  margin-top: 24px;
  margin-bottom: 10px;
  color: var(--slate-700);
}

.legal-page p {
  margin-bottom: 14px;
  color: var(--slate-500);
  line-height: 1.8;
  font-size: 15px;
}

.legal-page ul {
  margin: 14px 0;
  padding-left: 20px;
  color: var(--slate-500);
}
.legal-page li {
  margin-bottom: 6px;
  line-height: 1.7;
  font-size: 15px;
}

.legal-page a { color: var(--accent); }
.legal-page a:hover { text-decoration: underline; }

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero { padding-top: 120px; }
  .services-grid,
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px 24px;
    gap: 12px;
    border-bottom: 1px solid var(--slate-200);
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }

  .hero { padding-top: 100px; }
  .hero h1 { font-size: 2rem; }

  .hero-stats {
    flex-wrap: wrap;
    gap: 20px;
  }
  .hero-stats .stat {
    flex: 0 0 calc(50% - 10px);
  }
  .stat-sep { display: none; }

  .section { padding: 64px 0; }

  .services-grid,
  .audience-grid,
  .principles-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .footer-left {
    flex-direction: column;
    gap: 8px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .btn { text-align: center; justify-content: center; }
}
