/* ============================================
   CSIT.services — Modern Redesign
   ============================================ */

/* --- Local Fonts (Inter) --- */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/inter/inter-regular.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/inter/inter-medium.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/inter/inter-semibold.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/inter/inter-bold.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/inter/inter-extrabold.woff2') format('woff2'); }

/* --- CSS Custom Properties --- */
:root {
  --clr-bg:        #0b0f19;
  --clr-surface:   #111827;
  --clr-card:      rgba(255, 255, 255, 0.04);
  --clr-card-border: rgba(255, 255, 255, 0.08);
  --clr-text:      #e2e8f0;
  --clr-text-muted:#94a3b8;
  --clr-heading:   #f8fafc;
  --clr-accent:    #22d3ee;
  --clr-accent2:   #6366f1;
  --clr-accent-glow: rgba(34, 211, 238, 0.25);
  --clr-gradient:  linear-gradient(135deg, #22d3ee 0%, #6366f1 100%);
  --clr-gradient-subtle: linear-gradient(135deg, rgba(34,211,238,.12) 0%, rgba(99,102,241,.12) 100%);
  --font-body:     'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono:     'JetBrains Mono', 'Fira Code', monospace;
  --radius-sm:     8px;
  --radius-md:     16px;
  --radius-lg:     24px;
  --shadow-sm:     0 1px 3px rgba(0,0,0,.3);
  --shadow-md:     0 4px 24px rgba(0,0,0,.4);
  --shadow-glow:   0 0 40px var(--clr-accent-glow);
  --transition:    .3s cubic-bezier(.4,0,.2,1);
  --max-width:     1120px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Animated mesh-gradient background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(34,211,238,.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(99,102,241,.08) 0%, transparent 60%),
    var(--clr-bg);
}

img { max-width: 100%; display: block; }
a { color: var(--clr-accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: #67e8f9; }

h1, h2, h3, h4, h5, h6 {
  color: var(--clr-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

ul { list-style: none; }

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* gradient text */
.gradient-text {
  background: var(--clr-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Header / Navbar --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}

.site-header.scrolled {
  background: rgba(11, 15, 25, .85);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
  padding: .65rem 0;
}

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

.site-logo {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--clr-heading);
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  border: none;
}

.site-logo:hover { color: var(--clr-accent); }

.site-logo img {
  height: 30px;
  width: auto;
}

/* Desktop nav */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  color: var(--clr-text-muted);
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .02em;
  position: relative;
  padding: .25rem 0;
  transition: color var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--clr-gradient);
  border-radius: 2px;
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a:focus {
  color: var(--clr-heading);
}

.nav-links a:hover::after,
.nav-links a:focus::after {
  width: 100%;
}

/* Mobile hamburger */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
  color: var(--clr-text);
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* Mobile nav overlay */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(11, 15, 25, .95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}

.mobile-nav.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav a {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--clr-heading);
  letter-spacing: .02em;
}

.mobile-nav a:hover { color: var(--clr-accent); }

.mobile-nav-close {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--clr-text-muted);
  padding: .5rem;
}

.mobile-nav-close svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* --- Hero / Banner --- */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 4rem;
  position: relative;
  overflow: hidden;
}

/* decorative orb */
.hero::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34,211,238,.1) 0%, transparent 70%);
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  animation: pulse-glow 6s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
  0%   { opacity: .5; transform: translateX(-50%) scale(1); }
  100% { opacity: 1;  transform: translateX(-50%) scale(1.1); }
}

.hero-logo {
  width: 200px;
  height: auto;
  margin-bottom: 2rem;
  animation: fade-in-up .8s ease both;
  filter: drop-shadow(0 0 24px var(--clr-accent-glow));
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: .75rem;
  animation: fade-in-up .8s ease .15s both;
}

.hero .tagline {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--clr-text-muted);
  max-width: 520px;
  margin: 0 auto 2.5rem;
  animation: fade-in-up .8s ease .3s both;
}

.hero .scroll-cue {
  animation: fade-in-up .8s ease .5s both;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  color: var(--clr-text-muted);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 600;
  border: none;
  background: none;
  cursor: pointer;
  transition: color var(--transition);
}

.hero .scroll-cue:hover { color: var(--clr-accent); }

.scroll-cue .arrow-down {
  width: 20px;
  height: 20px;
  animation: bounce 2s ease infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(6px); }
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --- Sections common --- */
section {
  padding: 6rem 0;
}

.section-heading {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.section-heading h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  margin-bottom: 1rem;
}

.section-heading p {
  color: var(--clr-text-muted);
  font-size: 1.05rem;
}

/* --- Services / Features --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--clr-card);
  border: 1px solid var(--clr-card-border);
  border-radius: var(--radius-md);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--clr-gradient-subtle);
  opacity: 0;
  transition: opacity var(--transition);
  border-radius: inherit;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
  border-color: rgba(34,211,238,.2);
}

.feature-card:hover::before { opacity: 1; }

.feature-icon {
  position: relative;
  z-index: 1;
  width: 56px;
  height: 56px;
  margin: 0 auto 1.5rem;
  border-radius: var(--radius-sm);
  background: var(--clr-gradient-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--clr-accent);
  border: 1px solid rgba(34,211,238,.15);
}

.feature-card h3 {
  position: relative;
  z-index: 1;
  font-size: 1.1rem;
  margin-bottom: .75rem;
}

.feature-card p {
  position: relative;
  z-index: 1;
  color: var(--clr-text-muted);
  font-size: .95rem;
  line-height: 1.6;
}

/* --- About / Details Section --- */
.about-section {
  background: var(--clr-surface);
  border-top: 1px solid var(--clr-card-border);
  border-bottom: 1px solid var(--clr-card-border);
}

.about-content {
  max-width: 720px;
  margin: 0 auto 3.5rem;
  text-align: center;
}

.about-content h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  margin-bottom: 1.25rem;
}

.about-content p {
  font-size: 1.05rem;
  color: var(--clr-text-muted);
  line-height: 1.8;
}

.about-content p + p {
  margin-top: 1.25rem;
}

/* Stats row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 960px;
  margin: 0 auto;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .5rem;
  padding: 2rem 1.25rem;
  background: var(--clr-card);
  border: 1px solid var(--clr-card-border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition), transform var(--transition);
}

.stat-item:hover {
  border-color: rgba(34,211,238,.2);
  transform: translateY(-2px);
}

.stat-icon {
  font-size: 1.3rem;
  color: var(--clr-accent);
  margin-bottom: .25rem;
}

.stat-label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--clr-heading);
  letter-spacing: -.01em;
}

.stat-desc {
  font-size: .85rem;
  color: var(--clr-text-muted);
  line-height: 1.5;
}

/* --- CTA Section --- */
.cta-section {
  position: relative;
}

.cta-card {
  background: var(--clr-card);
  border: 1px solid var(--clr-card-border);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--clr-gradient-subtle);
  border-radius: inherit;
}

.cta-text {
  position: relative;
  z-index: 1;
  flex: 1;
}

.cta-text h2 {
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  margin-bottom: .75rem;
}

.cta-text p {
  color: var(--clr-text-muted);
  font-size: 1rem;
  max-width: 480px;
}

.cta-buttons {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  flex-shrink: 0;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .02em;
  padding: .75rem 1.75rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--clr-gradient);
  color: #0b0f19;
  box-shadow: 0 2px 16px var(--clr-accent-glow);
}

.btn-primary:hover {
  color: #0b0f19;
  box-shadow: 0 4px 32px var(--clr-accent-glow);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255,255,255,.06);
  color: var(--clr-heading);
  border: 1px solid var(--clr-card-border);
}

.btn-secondary:hover {
  background: rgba(255,255,255,.12);
  color: var(--clr-heading);
  border-color: rgba(255,255,255,.15);
}

.btn i {
  font-size: .95em;
}

/* --- Footer --- */
.site-footer {
  padding: 3rem 0;
  border-top: 1px solid var(--clr-card-border);
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--clr-text-muted);
  font-size: .85rem;
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--clr-heading); }

.footer-social a {
  color: var(--clr-text-muted);
  font-size: 1.1rem;
  transition: color var(--transition);
}

.footer-social a:hover { color: var(--clr-accent); }

.footer-copy {
  color: var(--clr-text-muted);
  font-size: .8rem;
}

.footer-copy a { color: var(--clr-text-muted); }
.footer-copy a:hover { color: var(--clr-heading); }

/* Divider dot */
.footer-links .dot,
.footer-copy .dot {
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--clr-text-muted);
  opacity: .5;
}

/* --- Impressum / Legal page --- */
.page-header {
  padding: 8rem 1.5rem 3rem;
  text-align: center;
  background: var(--clr-surface);
  border-bottom: 1px solid var(--clr-card-border);
}

.page-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.legal-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.legal-content h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: .75rem;
}

.legal-content h3 {
  font-size: 1.2rem;
  margin-top: 2rem;
  margin-bottom: .5rem;
}

.legal-content h4 {
  font-size: 1.05rem;
  margin-top: 1.5rem;
  margin-bottom: .5rem;
}

.legal-content p {
  color: var(--clr-text-muted);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.legal-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  color: var(--clr-text-muted);
}

.legal-content ul li {
  margin-bottom: .35rem;
  line-height: 1.7;
}

.legal-content a {
  word-break: break-all;
}

.legal-content em {
  font-style: italic;
  color: var(--clr-text-muted);
  opacity: .7;
}

/* --- Scroll reveal animations --- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* stagger children */
.reveal-children > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .5s ease, transform .5s ease;
}

.reveal-children.visible > *:nth-child(1) { transition-delay: .05s; opacity: 1; transform: translateY(0); }
.reveal-children.visible > *:nth-child(2) { transition-delay: .15s; opacity: 1; transform: translateY(0); }
.reveal-children.visible > *:nth-child(3) { transition-delay: .25s; opacity: 1; transform: translateY(0); }
.reveal-children.visible > *:nth-child(4) { transition-delay: .35s; opacity: 1; transform: translateY(0); }
.reveal-children.visible > *:nth-child(5) { transition-delay: .45s; opacity: 1; transform: translateY(0); }
.reveal-children.visible > *:nth-child(6) { transition-delay: .55s; opacity: 1; transform: translateY(0); }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

@media (max-width: 768px) {
  /* Header */
  .nav-links { display: none; }
  .menu-toggle { display: flex; }

  /* Hero */
  .hero { padding: 5rem 1.5rem 3rem; min-height: 100vh; min-height: 100dvh; }
  .hero-logo { width: 64px; }

  section { padding: 4rem 0; }

  /* Features */
  .features-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .feature-card { padding: 2rem 1.5rem; }

  /* Stats */
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
    max-width: 440px;
    margin: 0 auto;
  }

  @media (max-width: 480px) {
    .stats-row {
      grid-template-columns: 1fr;
      max-width: 360px;
    }
  }

  /* CTA */
  .cta-card {
    flex-direction: column;
    text-align: center;
    padding: 2.5rem 2rem;
  }

  .cta-text { text-align: center; }
  .cta-text p { margin: 0 auto; }

  .cta-buttons {
    width: 100%;
    max-width: 320px;
  }

  .cta-buttons .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.75rem; }
  .hero .tagline { font-size: .95rem; }

  .section-heading h2 { font-size: 1.35rem; }

  .feature-card { padding: 1.75rem 1.25rem; }

  .stat-item { padding: 1.5rem 1rem; }

  .cta-card { padding: 2rem 1.25rem; }

  .site-footer { padding: 2rem 0; }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: .75rem 1.25rem;
  }
}

/* --- Print --- */
@media print {
  body::before { display: none; }
  .site-header, .mobile-nav, .scroll-cue { display: none; }
  .hero { min-height: auto; padding: 2rem 0; }
}
