/* ============================================================
   ERGEN TECHNOVATION — main.css
   Global variables, reset, typography, buttons, footer, utils
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;700;900&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500&family=JetBrains+Mono:wght@300;400&display=swap');

/* ── CSS Variables ───────────────────────────────────────── */
:root {
  --cyan:          #00D4FF;
  --cyan-dim:      #0099BB;
  --navy:          #020B18;
  --navy-mid:      #061525;
  --navy-light:    #0A2035;
  --navy-card:     #0D2640;
  --electric:      #00FFB3;
  --amber:         #FFB800;
  --purple:        #B400FF;
  --white:         #F0F6FF;
  --grey:          #8AA4BC;
  --border:        rgba(0,212,255,0.15);
  --border-bright: rgba(0,212,255,0.4);
  --glow:          0 0 30px rgba(0,212,255,0.3);
  --font-display:  'Orbitron', monospace;
  --font-body:     'DM Sans', sans-serif;
  --font-mono:     'JetBrains Mono', monospace;
  --transition:    0.3s ease;
  --radius:        8px;
  --max-width:     1200px;
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ──────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; }
h1 { font-size: clamp(36px, 6vw, 80px); font-weight: 900; }
h2 { font-size: clamp(26px, 4vw, 52px); font-weight: 700; }
h3 { font-size: clamp(18px, 2.5vw, 28px); font-weight: 700; }
p  { color: var(--grey); line-height: 1.8; }
a  { color: var(--cyan); text-decoration: none; }

.section-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
  display: block;
}
.section-title em { color: var(--cyan); font-style: normal; }

/* ── Section wrapper ─────────────────────────────────────── */
.section {
  padding: 100px 40px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.section-full {
  padding: 100px 40px;
}
.section-dark {
  background: var(--navy-mid);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--cyan);
  color: var(--navy);
  border-color: var(--cyan);
}
.btn-primary:hover {
  background: transparent;
  color: var(--cyan);
  box-shadow: var(--glow);
}
.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: var(--border-bright);
}
.btn-secondary:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}
.btn-electric {
  background: var(--electric);
  color: var(--navy);
  border-color: var(--electric);
}
.btn-electric:hover {
  background: transparent;
  color: var(--electric);
  border-color: var(--electric);
}
.btn-sm { padding: 9px 20px; font-size: 11px; }

/* ── Feature cards grid ──────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.feature-card {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all var(--transition);
  cursor: pointer;
}
.feature-card:hover {
  border-color: var(--border-bright);
  box-shadow: var(--glow);
  transform: translateY(-4px);
}
.feature-icon {
  width: 48px; height: 48px;
  background: rgba(0,212,255,0.1);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 22px;
}
.feature-card h4 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--white);
}

/* ── Tech Ticker ─────────────────────────────────────────── */
.tech-ticker {
  background: var(--navy-mid);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  overflow: hidden;
}
.ticker-track {
  display: flex;
  gap: 60px;
  animation: ticker 30s linear infinite;
  white-space: nowrap;
  width: max-content;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.ticker-item {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--grey);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}
.ticker-item span { color: var(--cyan); }

/* ── Footer ──────────────────────────────────────────────── */
footer {
  background: var(--navy-mid);
  border-top: 1px solid var(--border);
  padding: 60px 40px 28px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 40px;
}
.footer-brand img { height: 34px; margin-bottom: 14px; display: block; }
.footer-brand p { color: var(--grey); font-size: 13px; line-height: 1.7; max-width: 260px; }
.footer-brand .tagline {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--cyan);
}
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul li a {
  color: var(--grey);
  font-size: 13px;
  transition: color 0.2s;
  cursor: pointer;
}
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
}
.footer-bottom p { color: var(--grey); font-size: 12px; font-family: var(--font-mono); }

/* ── Animations / Utils ──────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.text-cyan  { color: var(--cyan); }
.text-green { color: var(--electric); }
.text-grey  { color: var(--grey); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.8); }
}

/* ── Scrollbar ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: var(--cyan-dim); border-radius: 3px; }

/* ── Page header (inner pages) ───────────────────────────── */
.page-header {
  padding: 140px 40px 70px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}
.page-header h1 { margin-bottom: 16px; }
.page-header p  { font-size: 17px; max-width: 600px; margin: 0 auto; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner  { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 600px) {
  .section        { padding: 60px 20px; }
  .section-full   { padding: 60px 20px; }
  .features-grid  { grid-template-columns: 1fr; }
  .footer-inner   { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom  { flex-direction: column; gap: 8px; text-align: center; }
  .btn            { padding: 12px 20px; font-size: 11px; }
}
