﻿/* ==========================================
   twouz.org — Dark Theme CSS
   ========================================== */

/* ---- VARIABLES ---- */
:root {
  --bg-base: #0d0d12;
  --bg-elevated: #13131a;
  --bg-card: #18181f;
  --bg-card-hover: #1e1e28;
  --bg-dark-section: #0a0a10;

  --accent: #7c5cfc;
  --accent-hover: #9578ff;
  --accent-glow: rgba(124, 92, 252, 0.25);
  --accent-soft: rgba(124, 92, 252, 0.12);

  --text-primary: #f0f0f8;
  --text-secondary: #9898b3;
  --text-muted: #5a5a72;

  --border: rgba(255, 255, 255, 0.07);
  --border-accent: rgba(124, 92, 252, 0.3);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 40px rgba(124, 92, 252, 0.2);

  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --header-h: 70px;
  --transition: 0.2s ease;
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ---- LAYOUT ---- */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 80px 0; }
.section--dark { background: var(--bg-dark-section); }
.text-center { text-align: center; }
.text-accent { color: var(--accent); }

/* ---- TYPOGRAPHY ---- */
.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1.2rem;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 20px var(--accent-glow);
}
.btn--primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 30px rgba(124, 92, 252, 0.45);
  transform: translateY(-1px);
}
.btn--secondary {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--border-accent);
}
.btn--secondary:hover {
  background: rgba(124, 92, 252, 0.2);
  transform: translateY(-1px);
}
.btn--lg { padding: 15px 36px; font-size: 1rem; }
.btn--full { width: 100%; justify-content: center; }

/* ---- LOGO ---- */
.logo {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 1px;
}
.logo__bracket { color: var(--text-muted); }
.logo__name { color: var(--text-primary); font-weight: 700; }
.logo__dot { color: var(--accent); }
.logo__tld { color: var(--accent); }

/* ==========================================
   HEADER
   ========================================== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(13, 13, 18, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s;
}
.header.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: var(--header-h);
}
.nav { display: flex; gap: 0.25rem; margin-left: auto; }
.nav__link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.nav__link:hover { color: var(--text-primary); background: var(--bg-card); }
.nav__link.active { color: var(--text-primary); background: var(--bg-card); }
.header__cta { margin-left: 1rem; }

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================
   HERO
   ========================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 60px) 0 80px;
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.hero__glow--1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(124,92,252,0.18) 0%, transparent 70%);
  top: -100px; right: -100px;
}
.hero__glow--2 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(92,174,252,0.12) 0%, transparent 70%);
  bottom: 0; left: -50px;
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 14px;
  margin-bottom: 1.5rem;
}
.badge__dot {
  width: 8px; height: 8px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero__title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}
.hero__desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 2rem;
  line-height: 1.7;
}
.hero__btns { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Code Card */
.code-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card), var(--shadow-glow);
}
.code-card__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}
.dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.dot--red { background: #ff5f57; }
.dot--yellow { background: #febc2e; }
.dot--green { background: #28c840; }
.code-card__filename {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}
.code-card__body {
  padding: 20px 22px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.8;
  overflow-x: auto;
}
.c-keyword { color: #c792ea; }
.c-class { color: #82aaff; }
.c-str { color: #c3e88d; }
.c-comment { color: #546e7a; }

/* ==========================================
   STATS
   ========================================== */
.stats {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat-item__value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}
.stat-item__label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ==========================================
   ABOUT
   ========================================== */
.about__inner {
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.about__text p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.75;
}
.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 1.5rem;
}
.tech-tag {
  font-size: 0.78rem;
  font-weight: 500;
  font-family: var(--font-mono);
  padding: 5px 12px;
  background: var(--accent-soft);
  border: 1px solid var(--border-accent);
  border-radius: 100px;
  color: var(--accent);
}

/* Timeline */
.timeline { position: relative; }
.timeline::before {
  content: '';
  position: absolute;
  left: 10px; top: 6px; bottom: 0;
  width: 1px;
  background: var(--border);
}
.timeline__item {
  position: relative;
  padding-left: 36px;
  margin-bottom: 2rem;
}
.timeline__dot {
  position: absolute;
  left: 4px; top: 6px;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg-base);
  box-shadow: 0 0 10px var(--accent-glow);
}
.timeline__dot--edu { background: var(--text-muted); box-shadow: none; }
.timeline__date {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
  font-family: var(--font-mono);
}
.timeline__role {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.1rem;
}
.timeline__company {
  font-size: 0.82rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.timeline__desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ==========================================
   SERVICES PREVIEW
   ========================================== */
.services-preview__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition);
}
.service-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}
.service-card__icon { font-size: 2rem; margin-bottom: 1rem; }
.service-card__title { font-size: 1rem; font-weight: 700; margin-bottom: 0.6rem; }
.service-card__desc { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.65; margin-bottom: 1.25rem; }
.service-card__link { font-size: 0.82rem; color: var(--accent); font-weight: 600; transition: color var(--transition); }
.service-card__link:hover { color: var(--accent-hover); }

/* ==========================================
   CTA
   ========================================== */
.cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(124, 92, 252, 0.08) 100%);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-xl);
  padding: 50px 60px;
  flex-wrap: wrap;
}
.cta__text h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}
.cta__text p { color: var(--text-secondary); max-width: 420px; }

/* ==========================================
   FOOTER
   ========================================== */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer__nav {
  display: flex;
  gap: 1.5rem;
}
.footer__nav a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer__nav a:hover { color: var(--text-primary); }
.footer__copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================
   PAGE HERO (inner pages)
   ========================================== */
.page-hero {
  padding: calc(var(--header-h) + 60px) 0 60px;
  border-bottom: 1px solid var(--border);
}
.page-hero__title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.page-hero__desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
}

/* ==========================================
   SERVICES PAGE
   ========================================== */
.services-block__inner { max-width: 1100px; }
.services-block__header {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.services-block__icon { font-size: 3rem; line-height: 1; flex-shrink: 0; }
.services-block__header p {
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 560px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.feature-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: all var(--transition);
}
.feature-item:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
}
.feature-item__icon { font-size: 1.5rem; margin-bottom: 0.6rem; }
.feature-item h4 { font-size: 0.92rem; font-weight: 700; margin-bottom: 0.4rem; }
.feature-item p { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.6; }

/* ==========================================
   PRICING PAGE
   ========================================== */
.pricing-category__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}
.pricing-category__icon { font-size: 2.5rem; }
.pricing-category__header h2 {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  transition: all var(--transition);
}
.pricing-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
}
.pricing-card--featured {
  border-color: var(--accent);
  background: linear-gradient(160deg, var(--bg-card) 0%, rgba(124,92,252,0.06) 100%);
  box-shadow: 0 0 30px var(--accent-glow);
}
.pricing-card__badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 100px;
  white-space: nowrap;
}
.pricing-card__name {
  font-size: 1.05rem;
  font-weight: 700;
}
.pricing-card__price {
  font-size: 1.1rem;
  color: var(--text-secondary);
}
.pricing-card__price span {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
.pricing-card__desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.pricing-card__features {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.pricing-card__features li {
  font-size: 0.84rem;
  color: var(--text-secondary);
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.55;
}
.pricing-card__features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.75rem;
}

/* Add-ons */
.addons-block {
  margin-top: 2rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.addons-block h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
}
.addons-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}
.addon-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.addon-item__name { font-size: 0.82rem; color: var(--text-secondary); }
.addon-item__price { font-size: 0.82rem; font-weight: 700; color: var(--accent); white-space: nowrap; }

.pricing-note {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 4rem;
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 28px 36px;
  flex-wrap: wrap;
}
.pricing-note__icon { font-size: 2rem; flex-shrink: 0; }
.pricing-note__text {
  flex: 1;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
  min-width: 200px;
}
.pricing-note__text strong { color: var(--text-primary); }

/* ==========================================
   CONTACT PAGE
   ========================================== */
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.contact__info .section-title { margin-bottom: 1rem; }
.contact__info > p { color: var(--text-secondary); margin-bottom: 2rem; line-height: 1.7; }

.contact-links { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 2.5rem; }
.contact-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  transition: all var(--transition);
}
a.contact-link:hover { border-color: var(--border-accent); transform: translateX(4px); }
.contact-link__icon { font-size: 1.4rem; flex-shrink: 0; }
.contact-link__label { font-size: 0.75rem; color: var(--text-muted); font-weight: 500; margin-bottom: 2px; }
.contact-link__value { font-size: 0.9rem; font-weight: 600; }

.contact-faq h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.78rem;
}
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}
.faq-item:last-child { border-bottom: none; }
.faq-item__q { font-weight: 600; font-size: 0.92rem; margin-bottom: 0.4rem; }
.faq-item__a { font-size: 0.84rem; color: var(--text-secondary); line-height: 1.65; }

/* Contact Form */
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px;
}
.contact-form__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 1.1rem; }
.form-group label { font-size: 0.82rem; font-weight: 600; color: var(--text-secondary); }
.form-group input,
.form-group textarea,
.form-group select {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select option { background: var(--bg-elevated); color: var(--text-primary); }

.form-status {
  margin-top: 1rem;
  font-size: 0.88rem;
  border-radius: var(--radius-sm);
  padding: 0;
  transition: all 0.3s;
}
.form-status.success {
  color: #4ade80;
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.2);
  padding: 12px 16px;
}
.form-status.error {
  color: #f87171;
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.2);
  padding: 12px 16px;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .services-preview__grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .addons-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { display: none; }
  .about__inner { grid-template-columns: 1fr; gap: 3rem; }
  .contact__inner { grid-template-columns: 1fr; gap: 3rem; }
  .pricing-grid { grid-template-columns: 1fr; }
  .cta__inner { flex-direction: column; text-align: center; padding: 40px 28px; }
  .cta__text p { margin: 0 auto; }
}

@media (max-width: 768px) {
  .nav { display: none; position: fixed; top: var(--header-h); left: 0; right: 0;
    background: rgba(13,13,18,0.97); backdrop-filter: blur(20px);
    flex-direction: column; padding: 1.5rem; gap: 0.5rem;
    border-bottom: 1px solid var(--border); }
  .nav.open { display: flex; }
  .nav__link { padding: 12px 16px; width: 100%; }
  .header__cta { display: none; }
  .burger { display: flex; }
  .section { padding: 60px 0; }
  .services-preview__grid { grid-template-columns: 1fr 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .addons-grid { grid-template-columns: 1fr 1fr; }
  .pricing-note { flex-direction: column; text-align: center; }
  .footer__inner { flex-direction: column; align-items: center; text-align: center; }
}

@media (max-width: 480px) {
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .services-preview__grid { grid-template-columns: 1fr; }
  .hero__btns { flex-direction: column; }
  .hero__badge { font-size: 0.75rem; }
  .addons-grid { grid-template-columns: 1fr; }
  .services-block__header { flex-direction: column; }
  .contact-form { padding: 24px; }
}