/* assets/css/style.css */

/* ─── CSS VARIABLES ─── */
:root {
  --black:    #07080b;
  --surface:  #0d0e14;
  --surface2: #12131c;
  --border:   rgba(255,255,255,0.07);
  --red:      #e8294a;
  --red-dim:  rgba(232,41,74,0.10);
  --red-glow: rgba(232,41,74,0.30);
  --white:    #f0f1f5;
  --muted:    #8b92a5;
  --muted2:   #b0b8cc;
  --px:       56px;   /* horizontal page padding */
}

/* ─── RESET & BASE ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--black);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 9999; opacity: 0.5;
}

/* ─── CONTAINER ─── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--px);
  width: 100%;
}

/* ─── SECTION PADDING ─── */
.section-pad { padding: 96px var(--px); }
.section-pad-sm { padding: 72px var(--px); }

/* ─── NAVBAR ─── */
.rl-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  height: 66px; padding: 0 var(--px);
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(7,8,11,0.88);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
.rl-nav.scrolled { box-shadow: 0 4px 40px rgba(0,0,0,0.6); }

.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.logo-mark {
  width: 32px; height: 32px; background: var(--red); border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif; font-weight: 800; font-size: 0.85rem;
  color: #fff; flex-shrink: 0; letter-spacing: -0.5px;
}
.logo-name {
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1rem;
  color: var(--white); letter-spacing: 0.2px;
}
.logo-name em { font-style: normal; color: var(--red); }

/* Desktop nav links */
.nav-links {
  display: flex; align-items: center; gap: 4px;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  text-decoration: none; color: var(--muted2);
  font-size: 0.875rem; font-weight: 400; letter-spacing: 0.2px;
  padding: 6px 12px; border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,0.05); }
.nav-links a.active { color: var(--white); }
.nav-links a.nav-cta {
  background: var(--red); color: #fff !important;
  font-weight: 500; padding: 7px 18px; border-radius: 7px;
  transition: background 0.2s, transform 0.15s;
}
.nav-links a.nav-cta:hover { background: #c9223f; transform: translateY(-1px); }

/* Hamburger button — hidden on desktop */
.nav-hamburger {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
  width: 36px; height: 36px;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--white); border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.nav-drawer {
  display: none;
  position: fixed; top: 66px; left: 0; right: 0; z-index: 490;
  background: rgba(7,8,11,0.97);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px 24px;
  flex-direction: column; gap: 4px;
}
.nav-drawer.open { display: flex; animation: slideDown 0.2s ease; }
.nav-drawer a {
  text-decoration: none; color: var(--muted2);
  font-size: 1rem; font-weight: 400; padding: 12px 16px;
  border-radius: 8px; transition: color 0.2s, background 0.2s;
  border-bottom: 1px solid var(--border);
}
.nav-drawer a:last-child { border-bottom: none; }
.nav-drawer a:hover, .nav-drawer a.active { color: var(--white); background: rgba(255,255,255,0.05); }
.nav-drawer a.nav-cta-mobile {
  background: var(--red); color: #fff !important;
  font-weight: 600; text-align: center; margin-top: 8px;
  border-bottom: none; border-radius: 8px;
}

@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

/* ─── EMAIL MODAL ─── */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 800;
  background: rgba(0,0,0,0.75); backdrop-filter: blur(8px);
  align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.open { display: flex; animation: fadeIn 0.2s ease; }
.modal-box {
  background: var(--surface2);
  border: 1px solid rgba(232,41,74,0.2);
  border-radius: 18px; padding: 48px 44px;
  width: 100%; max-width: 460px;
  position: relative; animation: slideUp 0.25s ease; text-align: center;
}
.modal-close {
  position: absolute; top: 18px; right: 20px;
  background: none; border: none; cursor: pointer;
  color: var(--muted); font-size: 1.2rem; line-height: 1;
  width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
  border-radius: 6px; transition: background 0.2s, color 0.2s;
}
.modal-close:hover { background: rgba(255,255,255,0.07); color: var(--white); }
.modal-icon {
  width: 56px; height: 56px; background: var(--red-dim);
  border: 1px solid rgba(232,41,74,0.2); border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin: 0 auto 24px;
}
.modal-box h3 { font-family: 'Syne', sans-serif; font-size: 1.4rem; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.3px; }
.modal-box p { color: var(--muted2); font-size: 0.9rem; font-weight: 300; line-height: 1.65; margin-bottom: 28px; }
.modal-note { font-size: 0.78rem; color: var(--muted); margin: 0; }

/* ─── SHARED ELEMENTS ─── */
.pulse-dot {
  width: 8px; height: 8px; background: var(--red); border-radius: 50%;
  animation: pulse 2s ease infinite; flex-shrink: 0; display: inline-block;
}
.email-pill {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--black); border: 1px solid rgba(232,41,74,0.35);
  border-radius: 10px; padding: 14px 24px;
  font-family: 'Syne', sans-serif; font-size: 0.95rem; font-weight: 600;
  color: var(--white); text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
  width: 100%; justify-content: center;
}
.email-pill:hover { border-color: var(--red); box-shadow: 0 0 28px var(--red-glow); transform: translateY(-2px); color: var(--white); }

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--red); color: #fff;
  padding: 13px 28px; border-radius: 8px;
  font-weight: 500; font-size: 0.95rem; text-decoration: none;
  border: none; cursor: pointer; font-family: inherit;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.btn-primary:hover { background: #c9223f; transform: translateY(-2px); box-shadow: 0 8px 28px var(--red-glow); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--muted2);
  padding: 13px 28px; border-radius: 8px;
  font-weight: 400; font-size: 0.95rem; text-decoration: none;
  border: 1px solid var(--border); cursor: pointer; font-family: inherit;
  transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.15s;
}
.btn-secondary:hover { border-color: rgba(255,255,255,0.15); color: var(--white); background: rgba(255,255,255,0.04); transform: translateY(-2px); }

/* ─── TYPOGRAPHY HELPERS ─── */
.section-eyebrow {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--red); margin-bottom: 12px; display: block;
}
.section-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800; letter-spacing: -0.8px; line-height: 1.12; margin-bottom: 14px;
}
.section-sub {
  color: var(--muted2); font-size: 1rem;
  max-width: 480px; font-weight: 400; line-height: 1.75;
}

/* ─── HERO ─── */
.hero-section {
  min-height: 100vh; padding-top: 66px;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 64px; align-items: center;
  padding: 72px 0;
}
.hero-panel { display: block; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--red-dim); border: 1px solid rgba(232,41,74,0.22);
  border-radius: 100px; padding: 5px 14px 5px 8px;
  font-size: 0.72rem; font-weight: 500; color: #ff8099;
  letter-spacing: 0.8px; text-transform: uppercase; margin-bottom: 24px;
  animation: fadeUp 0.55s ease both;
}
.hero-h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 800; line-height: 1.06; letter-spacing: -2px;
  margin-bottom: 22px;
  animation: fadeUp 0.55s 0.08s ease both;
}
.hero-desc {
  font-size: 1.05rem; color: var(--muted2); line-height: 1.8;
  max-width: 460px; margin-bottom: 36px; font-weight: 400;
  animation: fadeUp 0.55s 0.16s ease both;
}
.hero-actions {
  display: flex; gap: 12px; flex-wrap: wrap;
  animation: fadeUp 0.55s 0.24s ease both;
}
.hero-card {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden;
  animation: fadeUp 0.55s 0.32s ease both;
}
.hero-card-header {
  padding: 14px 20px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px; background: var(--surface);
}
.hero-card-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.hero-card-title { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.8px; text-transform: uppercase; font-weight: 500; margin-left: 4px; }
.hero-card-list { list-style: none; padding: 8px; margin: 0; }
.hero-card-list li {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 8px; font-size: 0.9rem;
  color: var(--muted2); transition: all 0.2s; font-weight: 400;
}
.hero-card-list li:hover { background: rgba(232,41,74,0.07); color: var(--white); }

/* ─── STATS BAR ─── */
.stats-bar { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); }
.stats-grid {
  max-width: 1200px; margin: 0 auto; padding: 0 var(--px);
  display: grid; grid-template-columns: repeat(4,1fr);
}
.stat-item { padding: 42px 0; text-align: center; border-right: 1px solid var(--border); transition: background 0.2s; }
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: rgba(232,41,74,0.03); }
.stat-num { font-family: 'Syne', sans-serif; font-size: 2.4rem; font-weight: 800; color: var(--red); line-height: 1; margin-bottom: 8px; letter-spacing: -1px; }
.stat-label { font-size: 0.85rem; color: var(--muted2); font-weight: 400; }

/* ─── SERVICES GRID ─── */
.services-grid {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: 14px;
  overflow: hidden; margin-top: 52px;
}
.svc-card {
  background: var(--surface); padding: 30px 24px;
  position: relative; overflow: hidden; transition: background 0.25s;
}
.svc-card::after {
  content: ''; position: absolute;
  bottom: 0; left: 0; right: 0; height: 2px;
  background: var(--red); transform: scaleX(0); transition: transform 0.28s ease;
}
.svc-card:hover { background: var(--surface2); }
.svc-card:hover::after { transform: scaleX(1); }
.svc-card:hover .svc-icon { background: var(--red); }
.svc-icon {
  width: 40px; height: 40px; background: var(--red-dim);
  border-radius: 9px; display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; margin-bottom: 16px; transition: background 0.25s;
}
.svc-card h3 { font-family: 'Syne', sans-serif; font-size: 0.95rem; font-weight: 700; margin-bottom: 8px; color: var(--white); }
.svc-card p { font-size: 0.85rem; color: var(--muted2); line-height: 1.65; }

/* ─── ABOUT GRID ─── */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: start;
}
.mission-row { display: flex; gap: 16px; }
.mission-card {
  flex: 1; background: var(--surface2); border: 1px solid var(--border);
  border-radius: 12px; padding: 24px 20px; border-top: 2px solid var(--red);
}
.mission-label { font-family: 'Syne', sans-serif; font-size: 0.72rem; font-weight: 600; letter-spacing: 1.5px; color: var(--red); text-transform: uppercase; margin-bottom: 8px; }
.mission-text { font-size: 0.85rem; color: var(--muted2); line-height: 1.65; margin: 0; }

/* ─── VALUES GRID ─── */
.values-grid {
  display: grid; grid-template-columns: repeat(2,1fr);
  gap: 12px; margin-top: 20px;
}
.value-card {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 12px; padding: 22px 18px;
  border-top: 2px solid var(--red); transition: transform 0.2s;
}
.value-card:hover { transform: translateY(-3px); }
.val-icon { font-size: 1.4rem; margin-bottom: 10px; }
.value-card h3 { font-family: 'Syne', sans-serif; font-size: 0.9rem; font-weight: 700; margin-bottom: 6px; }
.value-card p { font-size: 0.8rem; color: var(--muted2); line-height: 1.6; }

/* ─── PILLARS GRID ─── */
.pillars-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 16px; margin-top: 48px;
}
.pillar {
  display: flex; flex-direction: column; gap: 12px; padding: 22px;
  border-radius: 10px; border: 1px solid var(--border);
  background: var(--black); transition: border-color 0.2s, transform 0.2s;
}
.pillar:hover { border-color: rgba(232,41,74,0.3); transform: translateY(-3px); }
.pillar-icon {
  width: 40px; height: 40px; background: var(--red-dim);
  border-radius: 8px; display: flex; align-items: center;
  justify-content: center; font-size: 1rem; flex-shrink: 0;
}
.pillar h4 { font-family: 'Syne', sans-serif; font-size: 0.95rem; font-weight: 700; margin-bottom: 4px; color: var(--white); }
.pillar p { font-size: 0.83rem; color: var(--muted2); line-height: 1.6; margin: 0; }

/* ─── TECH GRID ─── */
.tech-grid {
  display: grid; grid-template-columns: repeat(6,1fr);
  gap: 12px; margin-top: 44px;
}
.tech-item {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 10px; padding: 20px 12px; text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}
.tech-item:hover { border-color: rgba(232,41,74,0.3); transform: translateY(-3px); }
.tech-icon { font-size: 1.8rem; margin-bottom: 8px; }
.tech-item span { font-size: 0.75rem; color: var(--muted2); display: block; }

/* ─── CTA STRIP ─── */
.cta-strip {
  padding: 96px var(--px); position: relative; overflow: hidden;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.cta-strip-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 55% 80% at 50% 50%, rgba(232,41,74,0.1) 0%, transparent 70%), var(--surface2);
}
.cta-strip-inner { position: relative; z-index: 2; max-width: 580px; margin: 0 auto; text-align: center; }
.cta-strip h2 { font-family: 'Syne', sans-serif; font-size: clamp(1.9rem, 3.8vw, 3rem); font-weight: 800; letter-spacing: -1px; line-height: 1.1; margin-bottom: 14px; }
.cta-strip p { color: var(--muted2); font-size: 1rem; font-weight: 400; line-height: 1.75; margin-bottom: 32px; }

/* ─── FOOTER ─── */
.rl-footer {
  padding: 36px var(--px); display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--border);
}
.footer-copy { font-size: 0.78rem; color: var(--muted); }
.footer-links { display: flex; gap: 24px; list-style: none; padding: 0; margin: 0; }
.footer-links a { text-decoration: none; color: var(--muted); font-size: 0.78rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }

/* ─── ANIMATIONS ─── */
@keyframes fadeIn  { from { opacity: 0; }                                   to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(24px) scale(0.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes pulse   { 0%,100% { opacity:1; transform:scale(1); }             50% { opacity:0.5; transform:scale(0.75); } }
@keyframes fadeUp  { from { opacity: 0; transform: translateY(18px); }      to { opacity: 1; transform: translateY(0); } }

.fade-up { opacity: 0; transform: translateY(20px); transition: opacity 0.55s ease, transform 0.55s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ════════════════════════════════════ */

/* ─── TABLET 1024px ─── */
@media (max-width: 1024px) {
  :root { --px: 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 0; padding: 60px 0 48px; }
  .hero-panel { display: none; }
  .services-grid { grid-template-columns: repeat(2,1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .pillars-grid { grid-template-columns: repeat(2,1fr); }
  .tech-grid { grid-template-columns: repeat(4,1fr); }
}

/* ─── MOBILE 768px ─── */
@media (max-width: 768px) {
  :root { --px: 20px; }

  /* Nav */
  .rl-nav { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  /* Hero */
  .hero-h1 { font-size: clamp(2.2rem, 8vw, 3rem); letter-spacing: -1.2px; }
  .hero-desc { font-size: 0.95rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn-primary,
  .hero-actions .btn-secondary { width: 100%; justify-content: center; }

  /* Stats */
  .stats-grid { grid-template-columns: repeat(2,1fr); padding: 0 20px; }
  .stat-item { padding: 28px 0; }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-right: 1px solid var(--border); border-top: 1px solid var(--border); }
  .stat-item:nth-child(4) { border-right: none; border-top: 1px solid var(--border); }
  .stat-num { font-size: 1.9rem; }

  /* Sections */
  .section-pad { padding: 64px var(--px); }
  .section-pad-sm { padding: 52px var(--px); }

  /* Services */
  .services-grid { grid-template-columns: 1fr 1fr; margin-top: 36px; }

  /* About */
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .mission-row { flex-direction: column; }

  /* Values */
  .values-grid { grid-template-columns: 1fr 1fr; }

  /* Pillars */
  .pillars-grid { grid-template-columns: 1fr; gap: 12px; margin-top: 36px; }

  /* Tech */
  .tech-grid { grid-template-columns: repeat(3,1fr); gap: 10px; }

  /* CTA */
  .cta-strip { padding: 64px var(--px); }
  .email-pill { font-size: 0.82rem; padding: 13px 16px; word-break: break-all; }

  /* Footer */
  .rl-footer { flex-direction: column; gap: 20px; padding: 28px 20px; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; gap: 16px; }

  /* Modal */
  .modal-box { padding: 36px 24px; }
}

/* ─── SMALL MOBILE 480px ─── */
@media (max-width: 480px) {
  .hero-h1 { font-size: clamp(2rem, 9vw, 2.6rem); }
  .services-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: repeat(2,1fr); }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .section-title { font-size: clamp(1.6rem, 6vw, 2rem); }
}
