/* ============================================================
   ttv.lt — palette pulled from the app icon
   ============================================================ */
:root {
  --bg:        #0d0d0f;   /* icon background */
  --bg-elev:   #16161a;   /* raised surfaces */
  --bg-alt:    #111114;   /* alternating sections */
  --line:      #26262c;   /* hairlines / borders */
  --text:      #ececef;   /* primary text */
  --muted:     #9a9aa2;   /* secondary text */
  --gray:      #c9c9cf;   /* logo arc gray */
  --cyan:      #a7d4de;   /* cyan hex accent */
  --amber:     #f2a63c;   /* amber hex accent */
  --amber-dim: #c9862c;

  --maxw: 1120px;
  --radius: 16px;
  --radius-sm: 10px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --display: "Space Grotesk", "Inter", sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

a { color: inherit; text-decoration: none; }

/* ============ HEADER / NAV ============ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 13, 15, 0.72);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }

.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.brand { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 700; }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; display: block; }
.brand-text { font-size: 20px; letter-spacing: -.02em; }
.brand-text .dot { color: var(--amber); }
.brand-sm .brand-mark { width: 28px; height: 28px; }
.brand-sm .brand-text { font-size: 17px; }

.nav { display: flex; gap: 6px; }
.nav a {
  position: relative;
  padding: 8px 14px; border-radius: 8px;
  font-size: 15px; font-weight: 500; color: var(--muted);
  transition: color .2s ease, background .2s ease;
}
.nav a:hover { color: var(--text); background: var(--bg-elev); }
.nav a.active { color: var(--text); }
.nav a.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px;
  height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--amber));
}

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .25s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ HERO ============ */
.hero { position: relative; overflow: hidden; padding: 120px 0 100px; }
.hero-glow {
  position: absolute; top: -30%; right: -10%;
  width: 720px; height: 720px; pointer-events: none;
  background: radial-gradient(circle at center, rgba(167,212,222,.16), transparent 60%),
              radial-gradient(circle at 60% 60%, rgba(242,166,60,.14), transparent 60%);
  filter: blur(20px);
}
.hero-inner { position: relative; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-size: 14px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 26px;
}
.eyebrow .sep { color: var(--line); }
.hex { width: 12px; height: 13px; display: inline-block; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.hex-cyan { background: var(--cyan); }
.hex-amber { background: var(--amber); }

.hero-title {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(40px, 7vw, 76px); line-height: 1.02;
  letter-spacing: -.03em; margin-bottom: 24px;
}
.hero-title em { font-style: normal; color: var(--cyan); }
.hero-title em:last-of-type { color: var(--amber); }
.hero-title em.cy { color: var(--cyan); }
.hero-title em.am { color: var(--amber); }

.hero-lead { max-width: 560px; font-size: 19px; color: var(--muted); margin-bottom: 36px; }

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 24px; border-radius: 10px;
  font-weight: 600; font-size: 15px; cursor: pointer;
  border: 1px solid transparent; transition: .2s ease;
}
.btn-primary { background: var(--amber); color: #1a1205; }
.btn-primary:hover { background: #ffb84d; transform: translateY(-1px); }
.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--gray); background: var(--bg-elev); }
.btn-block { width: 100%; }
.btn-download { background: var(--bg); border-color: var(--line); color: var(--text); white-space: nowrap; }
.btn-download:hover { border-color: var(--cyan); color: var(--cyan); }

/* ============ SECTIONS ============ */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { margin-bottom: 48px; }
.section-num {
  font-family: var(--display); font-size: 14px; font-weight: 600;
  color: var(--amber); letter-spacing: .1em;
}
.section-title {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(30px, 4vw, 42px); letter-spacing: -.02em; margin-top: 4px;
}
.section-sub { color: var(--muted); margin-top: 10px; font-size: 17px; }

/* ============ ABOUT ============ */
.about-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 56px; }
.about-text .lead { font-size: 21px; color: var(--text); margin-bottom: 20px; }
.about-text p { color: var(--muted); margin-bottom: 18px; }

.about-side { display: flex; flex-direction: column; gap: 18px; }
.stat {
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 18px 20px;
  display: flex; flex-direction: column;
}
.stat-num { font-family: var(--display); font-size: 32px; font-weight: 700; }
.stat-num .plus { color: var(--cyan); }
.stat-label { color: var(--muted); font-size: 14px; }

.skill-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.skill-list li {
  font-size: 13px; color: var(--gray);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px;
}

/* ============ CARDS (Projects & Developing) ============ */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.card {
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-4px); border-color: #34343c; }

.card-media {
  aspect-ratio: 16 / 10; position: relative;
  background:
    linear-gradient(135deg, rgba(167,212,222,.10), rgba(242,166,60,.06)),
    repeating-linear-gradient(45deg, #1a1a1f 0 12px, #17171b 12px 24px);
  display: flex; align-items: flex-end; padding: 14px;
}
.media-dev {
  background:
    linear-gradient(135deg, rgba(242,166,60,.14), rgba(167,212,222,.05)),
    repeating-linear-gradient(45deg, #1a1a1f 0 12px, #17171b 12px 24px);
}
.card-tag {
  font-family: var(--display); font-size: 12px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
  background: rgba(13,13,15,.7); color: var(--cyan);
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px;
  backdrop-filter: blur(4px);
}
.card-tag.tag-amber { color: var(--amber); }

.card-body { padding: 18px 20px 22px; }
.card-body h3 { font-family: var(--display); font-size: 19px; font-weight: 600; margin-bottom: 6px; }
.card-body p { color: var(--muted); font-size: 15px; }

.tech-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tech-row span {
  font-size: 12px; color: var(--gray);
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 6px; padding: 3px 9px;
}

/* ============ DOWNLOADS ============ */
.dl-list { display: flex; flex-direction: column; gap: 14px; }
.dl-row {
  display: flex; align-items: center; gap: 20px;
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 24px;
  transition: border-color .2s ease;
}
.dl-row:hover { border-color: #34343c; }
.dl-icon {
  flex: none; width: 56px; height: 56px; border-radius: 14px;
  display: grid; place-items: center; font-size: 26px; color: var(--cyan);
  background: var(--bg); border: 1px solid var(--line);
}
.dl-info { flex: 1; min-width: 0; }
.dl-info h3 { font-family: var(--display); font-size: 18px; font-weight: 600; }
.dl-ver { font-size: 12px; color: var(--amber); font-weight: 600; margin-left: 6px; }
.dl-info p { color: var(--muted); font-size: 15px; margin: 2px 0 8px; }
.dl-meta { display: flex; gap: 16px; }
.dl-meta span { font-size: 13px; color: var(--gray); }

/* ============ CONTACTS ============ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-content: start; }
.contact-card {
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 20px;
  display: flex; flex-direction: column; gap: 6px;
  transition: border-color .2s ease;
}
a.contact-card:hover { border-color: var(--cyan); }
.contact-label { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.contact-value { font-family: var(--display); font-size: 17px; font-weight: 600; }
.contact-social { grid-column: 1 / -1; }
.contact-links { display: flex; gap: 16px; flex-wrap: wrap; }
.contact-links a { color: var(--cyan); font-weight: 500; }
.contact-links a:hover { text-decoration: underline; }

.contact-form { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--line);
  border-radius: 8px; padding: 12px 14px; color: var(--text);
  font-family: inherit; font-size: 15px; resize: vertical;
  transition: border-color .2s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--cyan); }
.form-note { font-size: 13px; color: var(--muted); margin-top: 12px; text-align: center; }

/* ============ FOOTER ============ */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-copy { color: var(--muted); font-size: 14px; }

/* ============ REVEAL ANIMATION ============ */
.section, .hero-inner > * { }
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav {
    position: fixed; inset: 68px 0 auto 0;
    flex-direction: column; gap: 0;
    background: var(--bg-elev); border-bottom: 1px solid var(--line);
    padding: 8px; transform: translateY(-120%); transition: transform .28s ease;
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 14px; border-radius: 8px; }
  .nav a.active::after { display: none; }
  .nav-toggle { display: flex; }
  .hero { padding: 80px 0 64px; }
  .section { padding: 64px 0; }
  .dl-row { flex-wrap: wrap; }
  .dl-row .btn-download { width: 100%; }
}
@media (max-width: 480px) {
  .card-grid { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
}
