/* ===========================
   INFYTECH DESIGN SYSTEM
   Mobile + Desktop Responsive
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Geist:wght@300;400;500;600;700;800;900&family=Geist+Mono:wght@400;500&display=swap');

:root {
  --bg: #050507;
  --bg-2: #0a0a10;
  --surface: #0e0e16;
  --surface-2: #14141e;
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.14);
  --text: #f5f5f7;
  --text-2: #b8b8c4;
  --text-3: #6b6b7a;
  --brand-1: #6366f1;
  --brand-2: #8b5cf6;
  --brand-3: #3b82f6;
  --brand-glow: rgba(99, 102, 241, 0.5);
  --gradient-brand: linear-gradient(135deg, #3b82f6 0%, #6366f1 50%, #8b5cf6 100%);
  --gradient-text: linear-gradient(135deg, #ffffff 0%, #c7d2fe 50%, #a5b4fc 100%);
  --gradient-glow: radial-gradient(ellipse at center, rgba(99,102,241,0.25) 0%, rgba(139,92,246,0.1) 40%, transparent 70%);
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'Geist', -apple-system, sans-serif;
  --font-mono: 'Geist Mono', monospace;
  --max: 1280px;
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 24px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  min-height: 100dvh;
}

body.menu-open { overflow: hidden; }

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 50% 0%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, black 20%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: var(--gradient-glow);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  animation: floatGlow 20s ease-in-out infinite;
}

@keyframes floatGlow {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-100px, 100px); }
}

a { color: inherit; text-decoration: none; touch-action: manipulation; }
img { max-width: 100%; display: block; }
button { font-family: inherit; touch-action: manipulation; }
input, select, textarea { font-family: inherit; }

/* NAV */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 10px 0;
  padding-top: calc(10px + var(--safe-top));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

.nav-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo img { height: 62px; width: auto; object-fit: contain; display: block; }
.nav-logo span { display: none; }

.nav-links { display: flex; gap: 36px; list-style: none; align-items: center; }

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: #5a5a6a;
  transition: color 0.2s;
  position: relative;
  padding: 8px 0;
}

.nav-links a:hover, .nav-links a.active { color: #1a1a24; }

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 2px;
  background: var(--gradient-brand);
  border-radius: 2px;
}

.nav-cta {
  padding: 10px 20px;
  background: var(--gradient-brand);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  color: white !important;
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.nav-cta::after { display: none !important; }
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 30px var(--brand-glow); }

.nav-burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  position: relative;
  font-size: 0;
}

.nav-burger::before, .nav-burger::after, .nav-burger > i {
  content: '';
  position: absolute;
  width: 22px;
  height: 2px;
  background: #1a1a24;
  border-radius: 2px;
  transition: all 0.3s ease;
  left: 50%;
  margin-left: -11px;
}
.nav-burger::before { top: 14px; }
.nav-burger > i { top: 21px; display: block; }
.nav-burger::after { top: 28px; }

body.menu-open .nav-burger::before { top: 21px; transform: rotate(45deg); }
body.menu-open .nav-burger > i { opacity: 0; }
body.menu-open .nav-burger::after { top: 21px; transform: rotate(-45deg); }

/* LAYOUT */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}

section { padding: 100px 0; position: relative; z-index: 1; }

/* TYPOGRAPHY */
h1, h2, h3, h4 {
  font-family: var(--font-body);
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-weight: 700;
}

.display {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.02em;
}

.h-xl { font-size: clamp(36px, 7vw, 96px); line-height: 1.02; }
.h-lg { font-size: clamp(30px, 5vw, 64px); line-height: 1.05; }
.h-md { font-size: clamp(24px, 3.5vw, 44px); line-height: 1.15; }

.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-2);
  padding: 6px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  background: rgba(255,255,255,0.02);
}

.eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand-2);
  box-shadow: 0 0 10px var(--brand-2);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.2); }
}

p.lead {
  font-size: clamp(15px, 1.4vw, 19px);
  color: var(--text-2);
  line-height: 1.6;
  max-width: 640px;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  transition: all 0.25s ease;
  min-height: 48px;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-brand);
  color: white;
  box-shadow: 0 8px 24px rgba(99,102,241,0.3);
}

.btn-primary:hover, .btn-primary:active { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(99,102,241,0.5); }

.btn-ghost {
  background: rgba(255,255,255,0.05);
  color: var(--text);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover, .btn-ghost:active { background: rgba(255,255,255,0.08); border-color: var(--brand-2); }

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* CARDS */
.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139,92,246,0.5), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.card:hover, .card:active {
  border-color: var(--border-strong);
  transform: translateY(-4px);
  background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
}

.card:hover::before, .card:active::before { opacity: 1; }

.card-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(139,92,246,0.15));
  border: 1px solid rgba(139,92,246,0.2);
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  font-size: 24px;
}

.card h3 { font-size: 22px; margin-bottom: 12px; font-weight: 600; }
.card p { color: var(--text-2); font-size: 15px; line-height: 1.6; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.section-head .eyebrow { margin-bottom: 20px; }
.section-head p { margin-top: 20px; color: var(--text-2); font-size: 17px; }

/* HERO */
.hero { padding: 180px 0 100px; position: relative; text-align: center; }
.hero .container { position: relative; z-index: 2; }
.hero h1 { margin: 28px 0 24px; }
.hero .lead { margin: 0 auto 36px; font-size: clamp(16px, 1.6vw, 20px); }
.hero .btn-row { justify-content: center; }

/* PAGE HEAD */
.page-head { padding: 160px 0 80px; text-align: center; border-bottom: 1px solid var(--border); position: relative; }
.page-head::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 80%; max-width: 800px;
  height: 400px;
  background: var(--gradient-glow);
  filter: blur(60px);
  pointer-events: none;
}
.page-head .container { position: relative; z-index: 1; }
.page-head .eyebrow { margin-bottom: 24px; }
.page-head h1 { margin-bottom: 20px; }
.page-head .lead { margin: 0 auto; }

/* FOOTER */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 80px 0 30px;
  padding-bottom: calc(30px + var(--safe-bottom));
  margin-top: 80px;
  position: relative;
  z-index: 1;
}

.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px; margin-bottom: 60px; }

.footer-brand img {
  height: 70px; width: auto;
  object-fit: contain;
  margin-bottom: 24px;
  margin-left: -10px;
  display: block;
  background: #ffffff;
  padding: 10px 18px;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(99,102,241,0.15);
}

.footer-brand p { color: var(--text-2); font-size: 15px; max-width: 320px; }

.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  margin-bottom: 20px;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; color: var(--text-2); font-size: 14px; }
.footer-col a { color: var(--text-2); font-size: 14px; transition: color 0.2s; display: inline-block; padding: 4px 0; }
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-3);
  font-size: 13px;
  gap: 16px;
  flex-wrap: wrap;
}

.socials { display: flex; gap: 14px; }
.socials a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  transition: all 0.2s;
  font-size: 14px;
  color: var(--text);
}
.socials a:hover, .socials a:active { background: var(--gradient-brand); border-color: transparent; transform: translateY(-2px); }

/* ANIMATIONS */
.reveal { opacity: 0; transform: translateY(20px); animation: reveal 0.8s ease forwards; }
.reveal-1 { animation-delay: 0.1s; }
.reveal-2 { animation-delay: 0.2s; }
.reveal-3 { animation-delay: 0.3s; }
.reveal-4 { animation-delay: 0.4s; }
.reveal-5 { animation-delay: 0.5s; }

@keyframes reveal { to { opacity: 1; transform: translateY(0); } }

.marquee {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 30px 0;
  background: rgba(255,255,255,0.01);
}

.marquee-track { display: flex; gap: 60px; white-space: nowrap; animation: scroll 30s linear infinite; }
.marquee-track span { font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.1em; color: var(--text-3); display: flex; align-items: center; gap: 60px; }
.marquee-track span::after { content: '◆'; color: var(--brand-2); }

@keyframes scroll { to { transform: translateX(-50%); } }

/* ========== RESPONSIVE ========== */

@media (max-width: 1024px) {
  .nav-links { gap: 24px; }
  .nav-links a { font-size: 13px; }
  .container { padding: 0 24px; }
}

@media (max-width: 920px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    flex-direction: column;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 100px 32px 40px;
    padding-top: calc(100px + var(--safe-top));
    padding-bottom: calc(40px + var(--safe-bottom));
    gap: 0;
    align-items: stretch;
    z-index: 99;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid rgba(0,0,0,0.06); }
  .nav-links li:last-child { border-bottom: none; margin-top: 20px; }
  .nav-links a {
    display: block;
    font-size: 20px;
    font-weight: 600;
    color: #1a1a24;
    padding: 20px 0;
    width: 100%;
  }
  .nav-links a.active::after { display: none; }
  .nav-links a.active { color: var(--brand-2); }
  .nav-cta {
    display: inline-flex;
    justify-content: center;
    width: 100%;
    padding: 18px 24px !important;
    font-size: 16px !important;
    color: white !important;
  }
  .nav-burger { display: flex; }
}

@media (max-width: 900px) {
  section { padding: 80px 0; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .section-head { margin-bottom: 48px; }
  .hero { padding: 150px 0 80px; }
  .page-head { padding: 140px 0 70px; }
}

@media (max-width: 768px) {
  section { padding: 70px 0; }
  .hero { padding: 130px 0 70px; }
  .page-head { padding: 120px 0 60px; }
  .nav-logo img { height: 54px; }
  .card { padding: 28px 24px; }
  .card-icon { width: 46px; height: 46px; margin-bottom: 18px; }
  .card h3 { font-size: 20px; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .nav-wrap { padding: 0 20px; }
  section { padding: 60px 0; }
  .hero { padding: 120px 0 60px; }
  .hero h1 { margin: 20px 0 18px; }
  .hero .lead { margin-bottom: 28px; }
  .page-head { padding: 110px 0 50px; }
  .section-head { margin-bottom: 40px; }
  .section-head p { font-size: 15px; }
  .nav-logo img { height: 48px; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; gap: 14px; }
  .footer { padding: 60px 0 24px; padding-bottom: calc(24px + var(--safe-bottom)); margin-top: 60px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; margin-bottom: 40px; }
  .footer-bottom { flex-direction: column; gap: 14px; text-align: center; padding-top: 24px; }
  .footer-brand img { height: 56px; padding: 8px 14px; margin-left: 0; }
  .btn-row { flex-direction: column; width: 100%; }
  .btn-row .btn { width: 100%; }
  .card { padding: 24px 20px; }
  .card h3 { font-size: 19px; }
  .card p { font-size: 14px; }
  .eyebrow { font-size: 11px; padding: 5px 12px; }
  .marquee { padding: 22px 0; }
  .marquee-track { gap: 40px; animation-duration: 25s; }
  .marquee-track span { gap: 40px; font-size: 12px; }
}

@media (max-width: 380px) {
  .container { padding: 0 16px; }
  .nav-wrap { padding: 0 16px; }
  .nav-logo img { height: 42px; }
  .hero { padding: 110px 0 50px; }
  section { padding: 50px 0; }
}

@media (hover: none) {
  .card:hover { transform: none; }
  .btn:hover { transform: none; }
}
