/* ===== AGES Digital — Global Stylesheet ===== */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #0a1628;
  --blue: #2563eb;
  --cyan: #06b6d4;
  --soft-blue: #3b82f6;
  --white: #ffffff;
  --light: #f8fafc;
  --slate: #1e293b;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow: 0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -2px rgba(0,0,0,.05);
  --shadow-lg: 0 10px 25px -3px rgba(0,0,0,.08), 0 4px 6px -4px rgba(0,0,0,.04);
  --shadow-xl: 0 20px 50px -12px rgba(0,0,0,.12);
  --transition: .3s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--slate);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--cyan); }

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Header / Nav --- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow var(--transition);
}

.site-header.scrolled { box-shadow: var(--shadow); }

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

.logo {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo .logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  font-size: .85rem;
}

nav.main-nav ul {
  display: flex;
  list-style: none;
  gap: 8px;
}

nav.main-nav a {
  display: block;
  padding: 8px 16px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--gray-600);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--blue);
  background: rgba(37,99,235,.06);
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 6px 0;
  border-radius: 2px;
  transition: all var(--transition);
}

.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* --- Hero --- */
.hero {
  padding: 160px 0 100px;
  background: linear-gradient(170deg, var(--navy) 0%, #0f2240 50%, #132d52 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(37,99,235,.15) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%; left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(6,182,212,.1) 0%, transparent 70%);
  border-radius: 50%;
}

.hero .container { position: relative; z-index: 1; }

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  color: #fff;
  margin-bottom: 24px;
  letter-spacing: -.03em;
  line-height: 1.15;
}

.hero h1 .highlight {
  background: linear-gradient(90deg, var(--cyan), var(--soft-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.2rem;
  color: var(--gray-300);
  max-width: 600px;
  margin-bottom: 40px;
  line-height: 1.8;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: .95rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--blue);
  color: #fff;
}
.btn-primary:hover {
  background: #1d4ed8;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(37,99,235,.3);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.25);
}
.btn-outline:hover {
  background: rgba(255,255,255,.08);
  color: #fff;
  border-color: rgba(255,255,255,.4);
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* --- Section Styles --- */
.section {
  padding: 100px 0;
}

.section-light { background: var(--light); }
.section-white { background: var(--white); }

.section-dark {
  background: var(--navy);
  color: #fff;
}

.section-dark h2,
.section-dark h3 { color: #fff; }

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
}

.section-header .label {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--blue);
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 16px;
  letter-spacing: -.02em;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--gray-500);
}

/* --- Card Grid --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 36px;
  transition: all var(--transition);
}

.card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.card-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, rgba(37,99,235,.08), rgba(6,182,212,.08));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.card p {
  color: var(--gray-500);
  font-size: .95rem;
  line-height: 1.7;
}

/* --- Values / Features Grid --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}

.feature-item {
  text-align: center;
  padding: 32px 20px;
}

.feature-number {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}

.feature-item h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.feature-item p {
  color: var(--gray-500);
  font-size: .9rem;
}

/* --- Stats --- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  text-align: center;
}

.stat { padding: 32px 16px; }

.stat-number {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 8px;
}

.section-dark .stat-number { color: var(--cyan); }

.stat-label {
  font-size: .9rem;
  color: var(--gray-500);
}
.section-dark .stat-label { color: var(--gray-400); }

/* --- Two-Column Layout --- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.two-col-text h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: 20px;
  letter-spacing: -.02em;
}

.two-col-text p {
  color: var(--gray-500);
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.two-col-visual {
  background: var(--light);
  border-radius: var(--radius);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
  border: 1px solid var(--gray-200);
}

.two-col-visual .mock-ui {
  width: 100%;
  max-width: 400px;
}

/* --- Team Grid --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

.team-card {
  text-align: center;
  padding: 40px 24px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.team-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: #fff;
  font-weight: 700;
}

.team-card h3 { font-size: 1.1rem; margin-bottom: 4px; }
.team-card .role { color: var(--blue); font-size: .85rem; font-weight: 600; margin-bottom: 12px; }
.team-card p { color: var(--gray-500); font-size: .88rem; }

/* --- Tech Stack --- */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.tech-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 32px;
  transition: all var(--transition);
}

.tech-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow);
}

.tech-card h3 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tech-tag {
  display: inline-block;
  padding: 4px 12px;
  font-size: .78rem;
  font-weight: 500;
  background: var(--gray-100);
  color: var(--gray-600);
  border-radius: 20px;
  margin: 4px 4px 4px 0;
}

/* --- Contact Form --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.contact-info h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.contact-info p {
  color: var(--gray-500);
  margin-bottom: 32px;
}

.contact-detail {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}

.contact-detail-icon {
  width: 44px;
  height: 44px;
  background: rgba(37,99,235,.06);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-detail h4 {
  font-size: .9rem;
  margin-bottom: 2px;
}

.contact-detail p {
  font-size: .92rem;
  color: var(--gray-500);
  margin-bottom: 0;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: .88rem;
  font-weight: 600;
  color: var(--slate);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  font-size: .95rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--slate);
  font-family: inherit;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}

.form-group textarea { resize: vertical; min-height: 120px; }

/* --- Legal / Policy Pages --- */
.legal-page {
  padding: 140px 0 80px;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h1 {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.legal-content .last-updated {
  color: var(--gray-400);
  font-size: .9rem;
  margin-bottom: 48px;
}

.legal-content h2 {
  font-size: 1.5rem;
  margin-top: 48px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-200);
}

.legal-content h3 {
  font-size: 1.15rem;
  margin-top: 32px;
  margin-bottom: 12px;
}

.legal-content p {
  margin-bottom: 16px;
  color: var(--gray-600);
}

.legal-content ul, .legal-content ol {
  margin: 12px 0 20px 24px;
  color: var(--gray-600);
}

.legal-content li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.legal-content .highlight-box {
  background: rgba(37,99,235,.04);
  border-left: 4px solid var(--blue);
  padding: 20px 24px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 24px 0;
}

.legal-content .highlight-box p { color: var(--slate); margin-bottom: 0; }

/* --- Page Header --- */
.page-header {
  padding: 140px 0 60px;
  background: linear-gradient(170deg, var(--navy) 0%, #132d52 100%);
  color: #fff;
  text-align: center;
}

.page-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: #fff;
  margin-bottom: 12px;
}

.page-header p {
  color: var(--gray-300);
  font-size: 1.15rem;
  max-width: 560px;
  margin: 0 auto;
}

/* --- CTA Banner --- */
.cta-banner {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--navy), #132d52);
  text-align: center;
  color: #fff;
}

.cta-banner h2 {
  font-size: 2.25rem;
  color: #fff;
  margin-bottom: 16px;
}

.cta-banner p {
  color: var(--gray-300);
  font-size: 1.1rem;
  max-width: 520px;
  margin: 0 auto 32px;
}

/* --- Footer --- */
.site-footer {
  background: var(--navy);
  color: var(--gray-400);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-brand .logo {
  color: #fff;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: .9rem;
  line-height: 1.7;
  max-width: 300px;
}

.footer-col h4 {
  color: #fff;
  font-size: .85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 20px;
}

.footer-col ul { list-style: none; }

.footer-col li { margin-bottom: 10px; }

.footer-col a {
  color: var(--gray-400);
  font-size: .9rem;
  transition: color var(--transition);
}
.footer-col a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-size: .83rem;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom a {
  color: var(--gray-400);
  margin-left: 24px;
}
.footer-bottom a:hover { color: #fff; }

/* --- Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s cubic-bezier(.4,0,.2,1), transform .7s cubic-bezier(.4,0,.2,1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .two-col, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }

  nav.main-nav {
    position: fixed;
    top: 72px;
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-lg);
    padding: 16px 24px;
    transform: translateY(-110%);
    transition: transform var(--transition);
    z-index: 999;
  }

  nav.main-nav.open { transform: translateY(0); }

  nav.main-nav ul {
    flex-direction: column;
    gap: 4px;
  }

  nav.main-nav a { padding: 12px 16px; font-size: 1rem; }

  .hero { padding: 130px 0 80px; }
  .hero h1 { font-size: 2.2rem; }
  .section { padding: 64px 0; }
  .section-header { margin-bottom: 40px; }
  .card-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .stats-row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .stats-row { grid-template-columns: 1fr; }
}
