/* ============================================================
   TVORIT — Landing Page Styles
   Dark, minimal, typographic
   ============================================================ */

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

:root {
  --bg:        #0a0a0b;
  --bg-2:      #111113;
  --bg-3:      #18181b;
  --border:    rgba(255,255,255,0.08);
  --text:      #f4f4f5;
  --text-2:    #a1a1aa;
  --text-3:    #71717a;
  --accent:    #e2e2e9;
  --green:     #4ade80;
  --blue:      #818cf8;
  --font:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius:    12px;
  --max-w:     1100px;
  --nav-h:     64px;
}

html {
  scroll-behavior: smooth;
}

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

/* ---- LAYOUT ---- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3 {
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

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

em {
  font-style: italic;
  color: var(--text-2);
}

/* ---- SECTION LABELS ---- */
.section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 24px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text);
  margin-bottom: 24px;
}

.section-sub {
  color: var(--text-2);
  font-size: 1.05rem;
  margin-bottom: 56px;
  max-width: 480px;
}

/* ---- BUTTONS ---- */
.btn-primary {
  display: inline-block;
  background: var(--text);
  color: var(--bg);
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: opacity 0.15s;
}
.btn-primary:hover {
  opacity: 0.88;
}

.btn-nav {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-2);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 6px;
  transition: color 0.15s, border-color 0.15s;
}
.btn-nav:hover {
  color: var(--text);
  border-color: rgba(255,255,255,0.2);
}

/* ---- NAV ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(10,10,11,0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a:not(.btn-nav) {
  font-size: 0.88rem;
  color: var(--text-2);
  transition: color 0.15s;
}
.nav-links a:not(.btn-nav):hover {
  color: var(--text);
}

/* ---- HERO ---- */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + 100px);
  padding-bottom: 140px;
  overflow: hidden;
}

.hero-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 28px;
}

.hero-title {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 28px;
  max-width: 720px;
  color: var(--text);
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-2);
  max-width: 480px;
  margin-bottom: 48px;
  line-height: 1.7;
}

/* decorative grid lines */
.hero-grid {
  position: absolute;
  top: 0; right: 0;
  width: 50%;
  height: 100%;
  pointer-events: none;
  display: flex;
  gap: 80px;
  align-items: stretch;
  opacity: 0.3;
}

.grid-line {
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--border) 30%, var(--border) 70%, transparent);
  flex-shrink: 0;
}

/* ---- ABOUT ---- */
.about {
  padding: 120px 0;
  border-top: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-bottom: 80px;
  align-items: start;
}

.about-col p {
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 20px;
}
.about-col p:last-child { margin-bottom: 0; }

/* pillars */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.pillar {
  background: var(--bg-2);
  padding: 40px 32px;
  transition: background 0.2s;
}
.pillar:hover {
  background: var(--bg-3);
}

.pillar-icon {
  font-size: 1.4rem;
  color: var(--text-3);
  margin-bottom: 20px;
  display: block;
}

.pillar h3 {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 12px;
  color: var(--text);
}

.pillar p {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.65;
}

/* ---- WORK ---- */
.work {
  padding: 120px 0;
  border-top: 1px solid var(--border);
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.card {
  background: var(--bg-2);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background 0.2s;
}
.card:hover {
  background: var(--bg-3);
}

.card-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}

.card h3 {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.015em;
}

.card p {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.65;
  flex: 1;
}

.card-footer {
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.card-status {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-3);
  letter-spacing: 0.02em;
}

.card-status::before {
  content: '•';
  margin-right: 6px;
  color: var(--green);
}

/* ---- CTA ---- */
.cta {
  padding: 120px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.cta h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
  color: var(--text);
}

.cta p {
  color: var(--text-2);
  margin-bottom: 40px;
  font-size: 1.05rem;
}

/* ---- FOOTER ---- */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--text-3);
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-right a {
  font-size: 0.82rem;
  color: var(--text-3);
  transition: color 0.15s;
}
.footer-right a:hover {
  color: var(--text-2);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .nav-links a:not(.btn-nav) { display: none; }

  .hero {
    padding-top: calc(var(--nav-h) + 60px);
    padding-bottom: 80px;
  }

  .hero-grid { display: none; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .pillars {
    grid-template-columns: 1fr;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---- SCROLL REVEAL ---- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
