/* === CSS Custom Properties === */
:root {
  --color-navy-900: #0a1628;
  --color-navy-800: #0f1f38;
  --color-navy-700: #152a4a;
  --color-navy-600: #1b355c;
  --color-teal-600: #007c85;
  --color-teal-500: #0098a3;
  --color-teal-400: #00b4bf;
  --color-teal-300: #2dd4db;
  --color-teal-100: #d4f7f9;
  --color-teal-50: #ecfafb;
  --color-white: #ffffff;
  --color-gray-50: #f8fafb;
  --color-gray-100: #f0f3f5;
  --color-gray-200: #dde3e7;
  --color-gray-300: #c4cdd5;
  --color-gray-400: #8a99a7;
  --color-gray-500: #647382;
  --color-gray-600: #4a5765;
  --color-gray-700: #35404c;
  --color-gray-800: #1f2933;
  --color-gray-900: #11181f;
  --color-green-500: #16a34a;
  --color-amber-500: #d97706;
  --shadow-sm: 0 1px 2px rgba(10, 22, 40, 0.06);
  --shadow-md: 0 4px 12px rgba(10, 22, 40, 0.08);
  --shadow-lg: 0 8px 28px rgba(10, 22, 40, 0.12);
  --shadow-xl: 0 16px 48px rgba(10, 22, 40, 0.16);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  --transition-fast: 180ms ease;
  --transition-normal: 280ms ease;
  --transition-slow: 400ms ease;
  --max-width: 1200px;
}

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

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

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-gray-800);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--color-teal-500);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-teal-600);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

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

h1 { font-size: 3rem; letter-spacing: -0.03em; }
h2 { font-size: 2.25rem; letter-spacing: -0.02em; }
h3 { font-size: 1.5rem; letter-spacing: -0.01em; }
h4 { font-size: 1.15rem; }

/* === Skip Navigation (Accessibility) === */
.skip-nav {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--color-navy-900);
  color: var(--color-white);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  z-index: 10000;
  font-weight: 600;
  transition: top var(--transition-fast);
}

.skip-nav:focus {
  top: 16px;
}

/* === Navigation === */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-gray-200);
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--color-navy-900);
  letter-spacing: -0.02em;
}

.navbar-logo {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--color-navy-800) 0%, var(--color-teal-500) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.navbar-logo::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  background: var(--color-white);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 4px rgba(255,255,255,0.2);
}

.navbar-links {
  display: flex;
  gap: 8px;
  align-items: center;
}

.navbar-links a {
  color: var(--color-gray-600);
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.navbar-links a:hover,
.navbar-links a.active {
  color: var(--color-teal-500);
  background: var(--color-teal-50);
}

.navbar-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.navbar-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-gray-700);
  border-radius: 2px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* === Hero Section === */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--color-navy-900) 0%, var(--color-navy-700) 40%, var(--color-navy-800) 100%);
  color: var(--color-white);
  padding: 100px 24px 110px;
  overflow: hidden;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 20% 50%, rgba(0, 180, 191, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 500px 350px at 80% 30%, rgba(45, 212, 219, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 400px 300px at 50% 80%, rgba(0, 152, 163, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  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;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--color-teal-300);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 28px;
}

.hero h1 {
  color: var(--color-white);
  font-size: 3.25rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
  line-height: 1.15;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--color-teal-300), var(--color-teal-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.2rem;
  color: var(--color-gray-300);
  max-width: 640px;
  margin: 0 auto 36px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 28px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-normal);
  text-decoration: none;
}

.btn-primary {
  background: var(--color-teal-500);
  color: var(--color-white);
  box-shadow: 0 4px 16px rgba(0, 152, 163, 0.3);
}

.btn-primary:hover {
  background: var(--color-teal-600);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(0, 152, 163, 0.4);
  color: var(--color-white);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255,255,255,0.25);
}

.btn-outline:hover {
  border-color: var(--color-white);
  transform: translateY(-2px);
  background: rgba(255,255,255,0.06);
  color: var(--color-white);
}

/* Stats Row */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 56px;
  flex-wrap: wrap;
}

.hero-stat {
  text-align: center;
}

.hero-stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-teal-300);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.hero-stat-label {
  font-size: 0.9rem;
  color: var(--color-gray-400);
  margin-top: 4px;
}

/* === Section Common === */
.section {
  padding: 88px 24px;
}

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

.section-tag {
  display: inline-block;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-teal-500);
  margin-bottom: 12px;
}

.section-header h2 {
  margin-bottom: 16px;
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* === Services Grid === */
.services {
  background: var(--color-gray-50);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  padding: 36px 32px 32px;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

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

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--color-teal-50);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-icon svg {
  width: 28px;
  height: 28px;
  color: var(--color-teal-500);
}

.service-card h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.service-card p {
  color: var(--color-gray-500);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* === Solutions Section === */
.solutions {
  background: var(--color-white);
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.solution-card {
  background: var(--color-gray-50);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  transition: background var(--transition-fast), box-shadow var(--transition-fast);
}

.solution-card:hover {
  background: var(--color-white);
  box-shadow: var(--shadow-md);
}

.solution-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-teal-500);
  margin-top: 6px;
  flex-shrink: 0;
}

.solution-card h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.solution-card p {
  color: var(--color-gray-500);
  font-size: 0.93rem;
  line-height: 1.6;
}

/* === Process Timeline === */
.process {
  background: var(--color-navy-900);
  color: var(--color-white);
}

.process .section-header h2 {
  color: var(--color-white);
}

.process .section-header p {
  color: var(--color-gray-400);
}

.process .section-tag {
  color: var(--color-teal-300);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 50px;
  right: 50px;
  height: 2px;
  background: rgba(255,255,255,0.1);
  z-index: 0;
}

.timeline-step {
  position: relative;
  z-index: 1;
  text-align: center;
}

.timeline-number {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--color-navy-700);
  border: 3px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-teal-300);
  margin: 0 auto 20px;
  transition: border-color var(--transition-normal), background var(--transition-normal);
}

.timeline-step:hover .timeline-number {
  border-color: var(--color-teal-400);
  background: var(--color-navy-600);
}

.timeline-step h4 {
  color: var(--color-white);
  margin-bottom: 6px;
}

.timeline-step p {
  color: var(--color-gray-400);
  font-size: 0.9rem;
  line-height: 1.55;
}

/* === Tech Stack === */
.tech-stack {
  background: var(--color-gray-50);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.tech-item {
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  padding: 28px 16px;
  text-align: center;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.tech-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.tech-item-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 12px;
  background: var(--color-teal-50);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tech-item-icon svg {
  width: 22px;
  height: 22px;
  color: var(--color-teal-500);
}

.tech-item h4 {
  font-size: 0.9rem;
  color: var(--color-gray-700);
}

/* === CTA Section === */
.cta {
  background: linear-gradient(135deg, var(--color-navy-800) 0%, var(--color-navy-700) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 500px 350px at 70% 50%, rgba(0, 180, 191, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

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

.cta h2 {
  color: var(--color-white);
  font-size: 2.25rem;
  margin-bottom: 14px;
}

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

/* === Footer === */
.footer {
  background: var(--color-navy-900);
  color: var(--color-gray-400);
  padding: 64px 24px 32px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

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

.footer-brand h3 {
  color: var(--color-white);
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.65;
}

.footer-column h4 {
  color: var(--color-white);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-column a {
  display: block;
  color: var(--color-gray-400);
  font-size: 0.9rem;
  margin-bottom: 10px;
  transition: color var(--transition-fast);
}

.footer-column a:hover {
  color: var(--color-teal-300);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
}

/* === Legal Pages (Privacy & Terms) === */
.legal-page {
  background: var(--color-white);
  padding: 72px 24px 96px;
}

.legal-header {
  text-align: center;
  margin-bottom: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--color-gray-200);
}

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

.legal-header .last-updated {
  color: var(--color-gray-500);
  font-size: 0.9rem;
}

.legal-body {
  max-width: 820px;
  margin: 0 auto;
}

.legal-body h2 {
  font-size: 1.4rem;
  margin-top: 44px;
  margin-bottom: 14px;
  color: var(--color-navy-800);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-teal-100);
}

.legal-body h3 {
  font-size: 1.12rem;
  margin-top: 28px;
  margin-bottom: 10px;
  color: var(--color-navy-700);
}

.legal-body p {
  color: var(--color-gray-700);
  margin-bottom: 16px;
  line-height: 1.75;
}

.legal-body ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
  color: var(--color-gray-700);
}

.legal-body ul li {
  margin-bottom: 8px;
  line-height: 1.65;
}

.legal-body strong {
  color: var(--color-gray-900);
}

.legal-body a {
  word-break: break-all;
}

/* === Contact Page === */
.contact-section {
  background: var(--color-gray-50);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info h2 {
  margin-bottom: 16px;
}

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

.contact-detail {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.contact-detail-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--color-teal-50);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail-icon svg {
  width: 20px;
  height: 20px;
  color: var(--color-teal-500);
}

.contact-detail-label {
  font-size: 0.8rem;
  color: var(--color-gray-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.contact-detail-value {
  color: var(--color-gray-800);
  font-weight: 500;
}

.contact-form-card {
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.contact-form-card h3 {
  margin-bottom: 24px;
}

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

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-gray-300);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--color-gray-800);
  background: var(--color-gray-50);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-teal-400);
  box-shadow: 0 0 0 3px rgba(0, 180, 191, 0.1);
  background: var(--color-white);
}

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

.form-submit {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  justify-content: center;
}

/* === About Section (Home) === */
.about-section {
  background: var(--color-white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.about-visual {
  background: linear-gradient(135deg, var(--color-navy-800), var(--color-teal-600));
  border-radius: var(--radius-xl);
  padding: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  min-height: 360px;
}

.about-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.about-visual-inner {
  text-align: center;
  position: relative;
  z-index: 1;
  color: var(--color-white);
}

.about-visual-inner .big-number {
  font-size: 5rem;
  font-weight: 900;
  color: var(--color-teal-300);
  line-height: 1;
  letter-spacing: -0.04em;
}

.about-visual-inner .big-label {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.7);
  margin-top: 8px;
}

.about-text h2 {
  margin-bottom: 16px;
}

.about-text p {
  color: var(--color-gray-500);
  margin-bottom: 14px;
  line-height: 1.7;
}

.about-checks {
  margin-top: 20px;
}

.about-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-weight: 500;
  color: var(--color-gray-700);
}

.about-check svg {
  width: 20px;
  height: 20px;
  color: var(--color-teal-500);
  flex-shrink: 0;
}

/* === Animations === */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === Responsive === */
@media (max-width: 1024px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 1.9rem; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .tech-grid { grid-template-columns: repeat(3, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .timeline::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .navbar {
    padding: 0 16px;
    height: 64px;
  }

  .navbar-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    padding: 16px 24px;
    border-bottom: 1px solid var(--color-gray-200);
    box-shadow: var(--shadow-lg);
    gap: 4px;
  }

  .navbar-links.open {
    display: flex;
  }

  .navbar-toggle {
    display: flex;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }

  .hero { padding: 72px 20px 80px; }
  .hero h1 { font-size: 2.25rem; }
  .hero p { font-size: 1rem; }
  .hero-stats { gap: 28px; }

  .section { padding: 56px 16px; }

  .services-grid { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .solutions-grid { grid-template-columns: 1fr; }

  .legal-page { padding: 48px 20px 64px; }
  .legal-header h1 { font-size: 1.8rem; }
  .legal-body h2 { font-size: 1.2rem; }

  .about-visual { min-height: 240px; padding: 40px; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-stats { gap: 20px; }
  .btn { width: 100%; justify-content: center; }
}
