/* Eniscreener — Telegram Mini App Studio
   Palette:  bg #0A0A0A  surface #141414  line #262626  text #F3F3F3
             muted #8A8A8A  accent #0098EA (TON blue)  warm #FBBF24
*/

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

:root {
  --bg: #0a0a0a;
  --surface: #141414;
  --surface-2: #1a1a1a;
  --line: rgba(255,255,255,0.08);
  --line-strong: rgba(255,255,255,0.18);
  --text: #f3f3f3;
  --muted: #8a8a8a;
  --muted-2: #666;
  --accent: #0098ea;
  --accent-dim: rgba(0,152,234,0.14);
  --warm: #fbbf24;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

em { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-weight: 400; letter-spacing: -0.015em; }

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* NAV */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  background: rgba(10,10,10,0.6);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.nav-scrolled { border-bottom-color: var(--line); }
.nav-inner {
  max-width: 1160px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 15px; letter-spacing: -0.02em;
}
.logo-mark {
  width: 20px; height: 20px;
  background: linear-gradient(135deg, var(--accent) 0%, #0066b3 100%);
  border-radius: 5px;
  box-shadow: 0 0 24px rgba(0,152,234,0.4);
  position: relative;
}
.logo-mark::after {
  content: ''; position: absolute; inset: 4px;
  border: 1.5px solid rgba(255,255,255,0.4); border-radius: 2px;
}
.nav-links {
  display: flex; gap: 28px;
  font-size: 13px; color: var(--muted);
}
.nav-links a { transition: color 0.15s ease; }
.nav-links a:hover { color: var(--text); }
.nav-cta { font-size: 13px; padding: 9px 18px; }

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-cta { padding: 8px 14px; font-size: 12px; }
}

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px;
  border-radius: 10px;
  font-weight: 500; font-size: 14px; letter-spacing: -0.01em;
  transition: all 0.18s ease;
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--text); color: var(--bg);
}
.btn-primary:hover { background: var(--accent); color: #fff; transform: translateY(-1px); }
.btn-ghost {
  background: transparent; color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: var(--surface); border-color: var(--muted); }
.btn-lg { padding: 15px 28px; font-size: 15px; }

/* HERO */
.hero {
  padding: 170px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(0,152,234,0.12), transparent 60%),
    radial-gradient(ellipse 50% 40% at 85% 30%, rgba(251,191,36,0.06), transparent 60%);
}
.hero > .container { position: relative; z-index: 1; }

.eyebrow {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  margin-bottom: 28px;
}

.h1 {
  font-size: clamp(44px, 7vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin-bottom: 24px;
}
.hero-sub {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--muted);
  max-width: 620px;
  line-height: 1.55;
  margin-bottom: 36px;
}
.hero-cta {
  display: flex; gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.hero-meta {
  padding-top: 36px;
  border-top: 1px solid var(--line);
  max-width: 560px;
}
.meta-row {
  display: flex; align-items: center; gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--muted);
}
.dot { width: 7px; height: 7px; border-radius: 999px; display: inline-block; }
.dot-live {
  background: #22c55e;
  box-shadow: 0 0 10px #22c55e;
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity:1 } 50% { opacity: 0.45 } }
.meta-k { color: var(--text); font-weight: 500; }
.meta-v { color: var(--muted); }

/* STRIP */
.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  padding: 36px 0;
}
.strip-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.strip-item {
  text-align: left;
}
.strip-item b {
  display: block;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1;
  margin-bottom: 6px;
}
.strip-item span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
}
@media (max-width: 760px) {
  .strip-inner { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

/* SECTIONS */
.section { padding: 120px 0; position: relative; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head {
  margin-bottom: 64px;
  max-width: 740px;
}
.h2 {
  font-size: clamp(32px, 4.5vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin-top: 10px;
}
.h2-contact { margin-top: 20px; margin-bottom: 24px; }
.section-sub {
  color: var(--muted);
  font-size: clamp(15px, 1.3vw, 18px);
  margin-top: 24px;
  max-width: 580px;
  line-height: 1.65;
}

/* SERVICES GRID */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.svc {
  padding: 42px 36px;
  background: var(--bg);
}
.section-alt .svc { background: var(--surface); }
.svc-num {
  font-family: 'JetBrains Mono', monospace;
  color: var(--muted-2);
  font-size: 12px;
  margin-bottom: 20px;
  letter-spacing: 0.1em;
}
.svc h3 {
  font-size: 22px;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  font-weight: 600;
}
.svc p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}
@media (max-width: 760px) {
  .svc-grid { grid-template-columns: 1fr; }
  .svc { padding: 32px 24px; }
}

/* WORK GRID */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.work-tile {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.2s ease;
  display: block;
}
.section-alt .work-tile { background: #0e0e0e; }
.work-tile-live:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: 0 20px 40px -20px rgba(0,152,234,0.25);
}
.work-image {
  position: relative;
  aspect-ratio: 16 / 9;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.work-image-aidiglet {
  background: #1a1208;
}
.work-image-aidiglet img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.work-grid-single { grid-template-columns: 1fr; }
.work-tile-feature {
  max-width: 820px;
  margin: 0 auto;
}
.work-tile-feature .work-image { aspect-ratio: 16 / 9; }
.work-tile-feature .work-body { padding: 32px 36px; }
.work-image-wip {
  background:
    linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
}
.work-image-text {
  font-size: 72px;
  color: var(--warm);
  opacity: 0.9;
  text-shadow: 0 0 40px rgba(251,191,36,0.4);
}
.work-image-wip .work-image-text {
  color: var(--muted-2);
  opacity: 0.5;
  text-shadow: none;
}
.work-badge {
  position: absolute; top: 16px; left: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.12em;
  padding: 5px 10px;
  border-radius: 4px;
  background: #22c55e;
  color: #042610;
  font-weight: 700;
}
.work-badge-wip {
  background: var(--surface-2);
  color: var(--muted);
  border: 1px solid var(--line);
}
.work-body {
  padding: 28px;
}
.work-cat {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 12px;
}
.work-title {
  font-size: 24px;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin-bottom: 10px;
}
.work-desc {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 18px;
}
.work-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--accent);
}
.work-link-muted { color: var(--muted-2); }
@media (max-width: 760px) {
  .work-grid { grid-template-columns: 1fr; }
}

/* PROCESS */
.proc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.proc {
  padding: 36px 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: all 0.2s ease;
}
.proc:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.proc-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}
.proc h3 {
  font-size: 22px;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  font-weight: 600;
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.proc-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted-2);
  font-weight: 400;
}
.proc p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}
@media (max-width: 900px) {
  .proc-grid { grid-template-columns: 1fr; }
}

/* WHY */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.why {
  padding: 42px 36px;
  background: var(--bg);
}
.section-alt .why { background: var(--surface); }
.why-k {
  font-size: 28px;
  color: var(--accent);
  margin-bottom: 20px;
  display: block;
}
.why h3 {
  font-size: 22px;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  font-weight: 600;
}
.why p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}
@media (max-width: 760px) {
  .why-grid { grid-template-columns: 1fr; }
  .why { padding: 32px 24px; }
}

/* CONTACT */
.section-contact {
  padding: 140px 0 100px;
  text-align: center;
}
.contact-wrap { max-width: 760px; margin: 0 auto; }
.section-contact .eyebrow { margin-bottom: 20px; }
.contact-sub {
  color: var(--muted);
  font-size: clamp(15px, 1.3vw, 18px);
  margin-bottom: 44px;
  line-height: 1.7;
}
.contact-cta {
  display: flex; gap: 12px; justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 44px;
}
.contact-meta {
  display: flex;
  gap: 32px;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--muted);
  flex-wrap: wrap;
}
.contact-k { color: var(--muted-2); margin-right: 6px; }

/* FOOTER */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 64px 0 36px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  margin-bottom: 44px;
}
.footer-brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 15px;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer-h {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted-2);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-cols a {
  display: block;
  font-size: 14px;
  color: var(--muted);
  padding: 4px 0;
  transition: color 0.15s ease;
}
.footer-cols a:hover { color: var(--text); }
.footer-copy {
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted-2);
  font-family: 'JetBrains Mono', monospace;
}
@media (max-width: 760px) {
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-cols { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}

/* REVEAL ANIMATIONS */
.section, .hero, .strip, .footer { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.section.in, .hero.in, .strip.in, .footer.in { opacity: 1; transform: none; }
.hero { transition-delay: 0.05s; }
