/* ==========================================================================
   Thaz Design System v2 — "Dinamikus Tech"
   Közös dizájn rendszer: tarsashazaink.hu + szoftver.tarsashazaink.hu
   ========================================================================== */

/* --- Tipográfia --- */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@500;600;700;800&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Háttér rétegek */
  --bg-base: #0a0e1a;
  --bg-elev-1: #0f1420;
  --bg-elev-2: #131824;
  --bg-elev-3: #1a2030;
  --bg-glass: rgba(19, 24, 36, 0.7);

  /* Akcens színek */
  --brand-blue: #3b82f6;
  --brand-blue-hi: #60a5fa;
  --brand-teal: #06b6d4;
  --brand-teal-hi: #22d3ee;
  --brand-amber: #f59e0b;
  --brand-amber-hi: #fbbf24;
  --brand-emerald: #10b981;

  /* Szöveg */
  --text-hi: #f8fafc;
  --text: #e2e8f0;
  --text-mid: #cbd5e1;
  --text-mute: #94a3b8;
  --text-dim: #64748b;

  /* Vonalak / keretek */
  --line: rgba(148, 163, 184, 0.12);
  --line-strong: rgba(148, 163, 184, 0.24);
  --line-glow: rgba(59, 130, 246, 0.4);

  /* Gradiensek */
  --grad-hero: radial-gradient(1200px 600px at 15% -20%, rgba(59, 130, 246, 0.18), transparent 60%),
               radial-gradient(900px 500px at 85% 10%, rgba(6, 182, 212, 0.14), transparent 60%),
               linear-gradient(180deg, #0a0e1a 0%, #0f1420 100%);
  --grad-amber: linear-gradient(135deg, #f59e0b 0%, #fb923c 100%);
  --grad-blue: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
  --grad-card: linear-gradient(165deg, rgba(59, 130, 246, 0.08) 0%, rgba(6, 182, 212, 0.04) 100%);

  /* Árnyékok */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 0 1px rgba(59, 130, 246, 0.3), 0 10px 40px rgba(59, 130, 246, 0.15);

  /* Radius */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;

  /* Typography rendszer */
  --font-display: 'Syne', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;

  /* Layout */
  --container: 1200px;
  --container-wide: 1400px;
  --nav-h: 72px;
}

/* --- Base --- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg-base);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Grid háttér — finom mintás pont-rács */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(148, 163, 184, 0.08) 1px, transparent 0);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse at 50% 0%, black 20%, transparent 70%);
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.container-wide { max-width: var(--container-wide); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--text-hi); letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 16px; font-weight: 700; }
h1 { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); letter-spacing: -0.01em; }
p { margin: 0 0 16px; color: var(--text-mid); }

a { color: var(--brand-blue-hi); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--brand-teal-hi); }

/* --- Kis komponensek --- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--brand-teal-hi);
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  background: var(--bg-elev-2);
}
.eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-teal); box-shadow: 0 0 10px var(--brand-teal); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.text-grad-blue { background: var(--grad-blue); -webkit-background-clip: text; background-clip: text; color: transparent; }
.text-grad-amber { background: var(--grad-amber); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* --- Gombok --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad-amber);
  color: #111;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(245, 158, 11, 0.5); color: #111; }
.btn-ghost {
  background: transparent;
  color: var(--text-hi);
  border-color: var(--line-strong);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { border-color: var(--brand-blue); background: rgba(59, 130, 246, 0.1); color: var(--text-hi); }
.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn .arrow { transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(4px); }

/* --- Navbar --- */
.nav-v2 {
  position: sticky;
  top: 0;
  height: var(--nav-h);
  z-index: 50;
  background: rgba(10, 14, 26, 0.75);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--line);
}
.nav-v2 .container { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.nav-v2 .logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--text-hi);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.nav-v2 .logo-mark {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--grad-blue);
  display: grid; place-items: center;
  color: white;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
}
.nav-v2 .links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-v2 .links a { color: var(--text-mid); font-size: 14px; font-weight: 500; }
.nav-v2 .links a:hover { color: var(--text-hi); }
.nav-v2 .cta-nav { display: flex; gap: 10px; align-items: center; }

/* --- Hero --- */
.hero-v2 {
  position: relative;
  padding: 80px 0 120px;
  background: var(--grad-hero);
  overflow: hidden;
}
.hero-v2::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(180deg, transparent, var(--bg-base));
  pointer-events: none;
}
.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.06) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at 50% 50%, black 30%, transparent 70%);
  pointer-events: none;
}
.hero-v2 .inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; position: relative; z-index: 1; }
.hero-v2 h1 { margin-bottom: 20px; }
.hero-v2 .lede { font-size: 1.15rem; color: var(--text-mid); max-width: 560px; margin-bottom: 32px; }
.hero-v2 .cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.stat { }
.stat .num { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--text-hi); line-height: 1; letter-spacing: -0.02em; }
.stat .lbl { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-mute); margin-top: 6px; }

/* Floating dashboard cards mockup */
.hero-mock {
  position: relative;
  height: 520px;
}
.mock-card {
  position: absolute;
  background: var(--bg-elev-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
  animation: float 6s ease-in-out infinite;
}
.mock-card h4 { font-family: var(--font-body); font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-mute); font-weight: 600; margin: 0 0 12px; }
.mock-card-1 { top: 30px; left: 20px; width: 280px; animation-delay: 0s; }
.mock-card-2 { top: 180px; right: 10px; width: 300px; animation-delay: -2s; }
.mock-card-3 { bottom: 40px; left: 70px; width: 260px; animation-delay: -4s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.bar-group { display: flex; align-items: flex-end; gap: 8px; height: 80px; }
.bar { flex: 1; background: var(--grad-blue); border-radius: 4px 4px 0 0; opacity: 0.8; }

.kpi-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.kpi-num { font-family: var(--font-display); font-size: 1.75rem; font-weight: 700; color: var(--text-hi); }
.kpi-delta { font-family: var(--font-mono); font-size: 11px; color: var(--brand-emerald); }

.term-line { font-family: var(--font-mono); font-size: 12px; line-height: 1.8; }
.term-prompt { color: var(--brand-teal); }
.term-ok { color: var(--brand-emerald); }
.term-dim { color: var(--text-mute); }

/* --- Szekciók --- */
.section { padding: 100px 0; position: relative; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.section-head h2 { margin-bottom: 16px; }
.section-head p { color: var(--text-mute); font-size: 1.1rem; }

/* --- Services grid --- */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card {
  position: relative;
  padding: 32px;
  background: var(--bg-elev-1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all 0.3s;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-card);
  opacity: 0;
  transition: opacity 0.3s;
}
.service-card:hover {
  border-color: var(--line-glow);
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
}
.service-card:hover::before { opacity: 1; }
.service-card > * { position: relative; z-index: 1; }
.service-icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: var(--r-md);
  background: rgba(59, 130, 246, 0.12);
  color: var(--brand-blue-hi);
  margin-bottom: 20px;
  font-size: 22px;
}
.service-card h3 { margin-bottom: 8px; }
.service-card p { font-size: 14px; color: var(--text-mute); margin-bottom: 0; }

/* --- Pricing cards --- */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}
.price-card {
  padding: 40px;
  background: var(--bg-elev-1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  position: relative;
}
.price-card.featured {
  border-color: var(--brand-amber);
  background: linear-gradient(165deg, rgba(245, 158, 11, 0.08) 0%, var(--bg-elev-1) 60%);
}
.price-card.featured::before {
  content: 'AJÁNLOTT';
  position: absolute;
  top: 20px; right: 20px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--grad-amber);
  color: #111;
  font-weight: 700;
}
.price-card h3 { margin-bottom: 4px; }
.price-card .sub { color: var(--text-mute); font-size: 14px; margin-bottom: 24px; }
.price-card .price { font-family: var(--font-display); font-size: 2.5rem; font-weight: 700; color: var(--text-hi); }
.price-card .price small { font-size: 0.9rem; color: var(--text-mute); font-weight: 400; }
.price-card ul { list-style: none; padding: 0; margin: 24px 0; }
.price-card li { padding: 8px 0; color: var(--text-mid); font-size: 14px; display: flex; align-items: center; gap: 10px; }
.price-card li::before { content: '✓'; color: var(--brand-emerald); font-weight: 700; }

/* --- Module showcase (software site) --- */
.module-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.module-card {
  padding: 24px;
  background: var(--bg-elev-1);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  position: relative;
  transition: all 0.3s;
}
.module-card:hover { border-color: var(--brand-teal); transform: translateY(-4px); }
.module-card .badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(245, 158, 11, 0.15);
  color: var(--brand-amber-hi);
  margin-bottom: 12px;
}
.module-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.module-card p { font-size: 13px; color: var(--text-mute); margin: 0; }

/* --- Footer --- */
.footer-v2 {
  border-top: 1px solid var(--line);
  padding: 48px 0 24px;
  background: var(--bg-elev-1);
}
.footer-v2 .grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}
.footer-v2 h4 { font-family: var(--font-body); font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-mute); font-weight: 600; margin-bottom: 14px; }
.footer-v2 ul { list-style: none; padding: 0; margin: 0; }
.footer-v2 li { padding: 4px 0; }
.footer-v2 a { color: var(--text-mid); font-size: 14px; }
.footer-v2 .bottom {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  color: var(--text-mute);
  font-size: 13px;
}

/* --- Responsive --- */
@media (max-width: 960px) {
  .hero-v2 .inner { grid-template-columns: 1fr; }
  .hero-mock { display: none; }
  .services, .module-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .footer-v2 .grid { grid-template-columns: 1fr 1fr; }
  .nav-v2 .links { display: none; }
}
@media (max-width: 640px) {
  .hero-stats-row { grid-template-columns: 1fr 1fr; }
  .services, .module-grid { grid-template-columns: 1fr; }
  .footer-v2 .grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
}
