/* ================================================================
   IT AND MORE SYSTEMS - Design System v1
   Font: Sora (display) + Source Sans 3 (body) + JetBrains Mono (code)
   Accent: Amber Gold
   Default: Dark
   ================================================================ */

/* --- DARK THEME (default) --- */
:root {
  --accent: #E8A838;
  --accent-bright: #F0C060;
  --accent-dim: rgba(232,168,56,0.3);
  --accent-glow: rgba(232,168,56,0.15);
  --accent-subtle: rgba(232,168,56,0.06);
  --accent-border: rgba(232,168,56,0.15);

  --bg-deep: #08090E;
  --bg-dark: #0C0D14;
  --bg-card: rgba(14,16,28,0.75);
  --bg-card-hover: rgba(20,24,42,0.85);

  --text: #B8BCC6;
  --text-bright: #E8EDF4;
  --text-dim: rgba(184,188,198,0.5);
  --text-muted: rgba(184,188,198,0.25);

  --danger: rgba(255,100,100,0.75);
  --success: #34D399;
  --warning: #FBBF24;

  --border: rgba(232,168,56,0.10);
  --border-hover: rgba(232,168,56,0.25);

  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  --shadow-glow: 0 0 30px rgba(232,168,56,0.08);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.3);

  --nav-bg: rgba(8,9,14,0.92);
  --nav-shadow: 0 1px 0 rgba(232,168,56,0.08);
}

/* --- LIGHT THEME --- */
[data-theme="light"] {
  --accent: #B8760F;
  --accent-bright: #9A6200;
  --accent-dim: rgba(184,118,15,0.25);
  --accent-glow: rgba(184,118,15,0.12);
  --accent-subtle: rgba(184,118,15,0.05);
  --accent-border: rgba(184,118,15,0.15);

  --bg-deep: #FAFAF7;
  --bg-dark: #F0EDE8;
  --bg-card: rgba(255,255,255,0.92);
  --bg-card-hover: rgba(255,255,255,1);

  --text: #3A3D48;
  --text-bright: #111827;
  --text-dim: rgba(58,61,72,0.5);
  --text-muted: rgba(58,61,72,0.25);

  --danger: rgba(220,50,50,0.85);
  --success: #0F8A3F;
  --warning: #B45309;

  --border: rgba(184,118,15,0.10);
  --border-hover: rgba(184,118,15,0.25);

  --shadow-glow: 0 0 20px rgba(184,118,15,0.06);
  --shadow-card: 0 1px 8px rgba(0,0,0,0.05), 0 0 1px rgba(0,0,0,0.08);

  --nav-bg: rgba(250,250,247,0.92);
  --nav-shadow: 0 1px 0 rgba(0,0,0,0.08);
}

/* --- RESET & BASE --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  background: var(--bg-deep);
  color: var(--text);
  font-family: 'Source Sans 3', -apple-system, sans-serif;
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
.accent { color: var(--accent); }

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-bright); }

h1, h2, h3, h4 { font-family: 'Sora', sans-serif; color: var(--text-bright); line-height: 1.15; }

/* ================================================================
   NAVBAR
   ================================================================ */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: 64px;
  display: flex; align-items: center; justify-content: center;
  background: var(--nav-bg);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--nav-shadow);
}
.nav-inner {
  max-width: 1100px; width: 100%; padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
}

/* Logo */
.nav-logo {
  display: flex; align-items: center; gap: 0.6rem;
  text-decoration: none; color: var(--text-bright);
  font-family: 'Sora', sans-serif; font-weight: 700; font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.nav-logo-mark {
  width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), #D4941A);
  display: flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; font-weight: 800;
  color: #000; letter-spacing: 0.04em;
}
.nav-logo-text { white-space: nowrap; }
.nav-logo-text .dim { color: var(--text-dim); font-weight: 400; }

/* Nav links */
.nav-links {
  display: flex; align-items: center; gap: 0.3rem;
}
.nav-links a {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.88rem; font-weight: 600; color: var(--text-dim);
  text-decoration: none; padding: 0.45rem 0.9rem; border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text-bright); background: var(--accent-subtle); }
.nav-links a.active { color: var(--accent); background: var(--accent-subtle); }

/* Nav right: lang + theme */
.nav-right { display: flex; align-items: center; gap: 0.6rem; }
.nav-lang {
  display: flex; gap: 0.15rem;
  font-family: 'JetBrains Mono', monospace; font-size: 0.65rem; font-weight: 700;
}
.nav-lang a {
  padding: 0.25rem 0.55rem; border-radius: 4px; color: var(--text-dim);
  border: 1px solid transparent; letter-spacing: 0.06em;
}
.nav-lang a.active { color: var(--accent); border-color: var(--accent-border); background: var(--accent-subtle); }
.nav-lang a:hover { color: var(--accent); }

.nav-theme {
  background: none; border: none; cursor: pointer; padding: 0.3rem;
  color: var(--text-dim); display: flex; align-items: center; transition: color 0.2s;
}
.nav-theme:hover { color: var(--accent); }
.nav-theme svg { width: 16px; height: 16px; }

/* Hamburger */
.nav-toggle {
  display: none; flex-direction: column; gap: 4px;
  background: none; border: none; cursor: pointer; padding: 0.3rem;
}
.nav-toggle span { width: 18px; height: 2px; background: var(--text-bright); border-radius: 1px; transition: all 0.3s; }

body { padding-top: 64px; }

/* ================================================================
   HERO
   ================================================================ */
.hero {
  position: relative; overflow: hidden;
  padding: 6rem 0 5rem;
  min-height: calc(100vh - 64px);
  display: flex; align-items: center;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 40%, rgba(232,168,56,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(232,168,56,0.04) 0%, transparent 50%);
}
[data-theme="light"] .hero-bg {
  background:
    radial-gradient(ellipse 80% 50% at 20% 40%, rgba(184,118,15,0.04) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(184,118,15,0.03) 0%, transparent 50%);
}
.hero-grid {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.4;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 70%);
}
.hero .container { position: relative; z-index: 1; }
.hero-eyebrow {
  font-family: 'JetBrains Mono', monospace; font-size: 0.68rem;
  color: var(--accent); letter-spacing: 0.2em; text-transform: uppercase;
  margin-bottom: 1.2rem; display: flex; align-items: center; gap: 0.8rem;
  opacity: 0; animation: fadeUp 0.6s 0.2s forwards;
}
.hero-eyebrow::before { content: ''; width: 32px; height: 2px; background: var(--accent); }
.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4rem); font-weight: 800;
  letter-spacing: -0.03em; margin-bottom: 1.5rem; max-width: 700px;
  opacity: 0; animation: fadeUp 0.6s 0.35s forwards;
}
.hero-sub {
  font-size: 1.15rem; color: var(--text); max-width: 560px;
  margin-bottom: 2.5rem; line-height: 1.75;
  opacity: 0; animation: fadeUp 0.6s 0.5s forwards;
}
.hero-actions {
  display: flex; gap: 1rem; flex-wrap: wrap;
  opacity: 0; animation: fadeUp 0.6s 0.65s forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ================================================================
   BUTTONS
   ================================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: 'Sora', sans-serif; font-size: 0.88rem; font-weight: 600;
  padding: 0.75rem 1.6rem; border-radius: 8px; border: none;
  cursor: pointer; text-decoration: none; transition: all 0.25s;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary {
  background: var(--accent); color: #000;
  box-shadow: 0 2px 12px rgba(232,168,56,0.25);
}
.btn-primary:hover {
  background: var(--accent-bright); color: #000;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(232,168,56,0.35);
}
.btn-outline {
  background: transparent; color: var(--text-bright);
  border: 1px solid var(--border-hover);
}
.btn-outline:hover {
  border-color: var(--accent); color: var(--accent);
  background: var(--accent-subtle);
}

/* ================================================================
   SECTIONS
   ================================================================ */
.section { padding: 5rem 0; }
.section-lg { padding: 6rem 0; }
.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 800;
  margin-bottom: 0.8rem; letter-spacing: -0.02em;
}
.section-sub {
  font-size: 1rem; color: var(--text-dim); max-width: 560px;
  line-height: 1.7; margin-bottom: 3rem;
}
.section-eyebrow {
  font-family: 'JetBrains Mono', monospace; font-size: 0.62rem;
  color: var(--accent); letter-spacing: 0.2em; text-transform: uppercase;
  margin-bottom: 0.8rem; display: flex; align-items: center; gap: 0.6rem;
}
.section-eyebrow::before { content: ''; width: 20px; height: 2px; background: var(--accent); }

.section-divider {
  display: flex; justify-content: center; padding: 1rem 0;
}
.section-divider::after {
  content: ''; width: 40px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-dim), transparent);
}

/* ================================================================
   SERVICES GRID
   ================================================================ */
.services-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem;
}
.service-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem;
  transition: all 0.3s; position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.service-card:hover {
  border-color: var(--border-hover); background: var(--bg-card-hover);
  transform: translateY(-2px); box-shadow: var(--shadow-glow);
}
.service-card:hover::before { opacity: 1; }
.service-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--accent-subtle); border: 1px solid var(--accent-border);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.2rem; color: var(--accent);
}
.service-icon svg { width: 20px; height: 20px; }
.service-card h3 {
  font-size: 1.1rem; font-weight: 700; margin-bottom: 0.6rem;
}
.service-card p {
  font-size: 0.9rem; color: var(--text); line-height: 1.65;
}
.service-tags {
  display: flex; gap: 0.3rem; flex-wrap: wrap; margin-top: 1rem;
}
.service-tag {
  font-family: 'JetBrains Mono', monospace; font-size: 0.52rem;
  color: var(--accent); background: var(--accent-subtle);
  border: 1px solid var(--accent-border); padding: 0.15rem 0.5rem;
  border-radius: 3px; letter-spacing: 0.05em; text-transform: uppercase;
}

/* ================================================================
   STATS BAR
   ================================================================ */
.stats-bar {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg-card); overflow: hidden;
}
.stat-item {
  padding: 1.8rem 1.5rem; text-align: center;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: 'Sora', sans-serif; font-size: 2rem; font-weight: 800;
  color: var(--accent); line-height: 1;
}
.stat-label {
  font-size: 0.8rem; color: var(--text-dim); margin-top: 0.4rem;
}

/* ================================================================
   USP SECTION
   ================================================================ */
.usp-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
}
.usp-item { }
.usp-num {
  font-family: 'JetBrains Mono', monospace; font-size: 0.6rem;
  color: var(--accent-dim); letter-spacing: 0.15em; margin-bottom: 0.6rem;
}
.usp-item h3 {
  font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem;
}
.usp-item p {
  font-size: 0.88rem; color: var(--text); line-height: 1.65;
}

/* ================================================================
   SHOWCASE / FLAGSHIP
   ================================================================ */
.showcase-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
  align-items: center;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 3rem;
  position: relative; overflow: hidden;
}
.showcase-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent 60%);
}
.showcase-badge {
  font-family: 'JetBrains Mono', monospace; font-size: 0.55rem;
  color: var(--accent); background: var(--accent-subtle);
  border: 1px solid var(--accent-border); padding: 0.2rem 0.6rem;
  border-radius: 4px; letter-spacing: 0.1em; text-transform: uppercase;
  display: inline-block; margin-bottom: 1rem;
}
.showcase-title {
  font-size: 1.5rem; font-weight: 800; margin-bottom: 0.8rem;
}
.showcase-text {
  font-size: 0.92rem; color: var(--text); line-height: 1.7; margin-bottom: 1.5rem;
}
.showcase-features {
  display: flex; flex-direction: column; gap: 0.5rem;
}
.showcase-feat {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.85rem; color: var(--text);
}
.showcase-feat svg { width: 14px; height: 14px; color: var(--accent); flex-shrink: 0; }
.showcase-visual {
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-deep); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2.5rem; min-height: 260px;
  font-family: 'JetBrains Mono', monospace; font-size: 0.6rem;
  color: var(--text-dim); text-align: center;
  position: relative; overflow: hidden;
}
.showcase-visual::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 40%, rgba(232,168,56,0.06) 0%, transparent 50%);
}

/* ================================================================
   CTA SECTION
   ================================================================ */
.cta-section {
  background: var(--bg-card); border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border); padding: 4.5rem 0;
  text-align: center;
}
.cta-section .section-title { margin: 0 auto 0.8rem; }
.cta-section p {
  font-size: 1rem; color: var(--text); max-width: 500px;
  margin: 0 auto 2rem; line-height: 1.7;
}
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ================================================================
   FOOTER
   ================================================================ */
#site-footer {
  background: var(--bg-dark); border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}
.footer-inner {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
}
.footer-brand {
  font-family: 'Sora', sans-serif; font-weight: 700; font-size: 1rem;
  color: var(--text-bright); margin-bottom: 0.8rem;
}
.footer-brand-text {
  font-size: 0.85rem; color: var(--text-dim); line-height: 1.6;
  max-width: 260px;
}
.footer-col h4 {
  font-family: 'JetBrains Mono', monospace; font-size: 0.58rem;
  color: var(--accent); letter-spacing: 0.15em; text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-col a {
  display: block; font-size: 0.88rem; color: var(--text-dim);
  padding: 0.3rem 0; transition: color 0.2s;
}
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  margin-top: 3rem; padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.78rem; color: var(--text-dim);
}
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { color: var(--text-dim); font-size: 0.78rem; }
.footer-legal a:hover { color: var(--accent); }

/* ================================================================
   CONTACT PAGE
   ================================================================ */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
}
.contact-item {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.5rem; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); transition: border-color 0.3s;
}
.contact-item:hover { border-color: var(--border-hover); }
.contact-icon {
  width: 40px; height: 40px; border-radius: 8px; flex-shrink: 0;
  background: var(--accent-subtle); border: 1px solid var(--accent-border);
  display: flex; align-items: center; justify-content: center; color: var(--accent);
}
.contact-icon svg { width: 18px; height: 18px; }
.contact-label {
  font-family: 'JetBrains Mono', monospace; font-size: 0.55rem;
  color: var(--accent); letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 0.2rem;
}
.contact-value { font-size: 0.95rem; color: var(--text-bright); }
.contact-value a { color: var(--text-bright); }
.contact-value a:hover { color: var(--accent); }

/* ================================================================
   LEGAL PAGES (Imprint, Privacy)
   ================================================================ */
.legal-page { max-width: 800px; margin: 0 auto; padding: 5rem 2rem 6rem; }
.legal-page h1 {
  font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800;
  margin-bottom: 0.5rem;
}
.legal-meta {
  font-family: 'JetBrains Mono', monospace; font-size: 0.62rem;
  color: var(--text-dim); letter-spacing: 0.1em; margin-bottom: 3rem;
  padding-bottom: 2rem; border-bottom: 1px solid var(--border);
}
.legal-section { margin-bottom: 2.5rem; }
.legal-section h2 {
  font-size: 1.15rem; font-weight: 700; margin-bottom: 0.8rem;
  padding-bottom: 0.5rem; border-bottom: 1px solid var(--border);
}
.legal-section p {
  font-size: 0.92rem; line-height: 1.8; margin-bottom: 0.6rem;
}
.legal-section a { border-bottom: 1px solid var(--accent-border); }
.legal-section a:hover { border-color: var(--accent); }

/* ================================================================
   REVEAL ANIMATIONS
   ================================================================ */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left {
  opacity: 0; transform: translateX(-24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .usp-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; top: 64px; left: 0; right: 0; bottom: 0;
    background: var(--bg-deep); padding: 2rem; gap: 0; z-index: 999;
  }
  .nav-links.open a {
    font-size: 1.1rem; padding: 1rem 0;
    border-bottom: 1px solid var(--border);
  }

  .hero { padding: 4rem 0 3rem; min-height: auto; }
  .hero h1 { font-size: clamp(1.8rem, 7vw, 2.5rem); }

  .services-grid { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .usp-grid { grid-template-columns: 1fr; }
  .showcase-card { grid-template-columns: 1fr; gap: 2rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.8rem; text-align: center; }
}

@media (max-width: 480px) {
  .stats-bar { grid-template-columns: 1fr; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); }
  .stat-item:last-child { border-bottom: none; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}
