/* AI Manifest — Design System
   Palette: Deep Navy #0A1628, Amber #F5A623, White #FFFFFF
   Typography: Inter (clean, modern, professional)
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #1a1a2e;
  background: #ffffff;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

/* ========== TYPOGRAPHY ========== */
h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 600;
  line-height: 1.3;
}

p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #3a3a5c;
}

.text-light p, .text-light h1, .text-light h2, .text-light h3 {
  color: #ffffff;
}
.text-light p { color: rgba(255,255,255,0.85); }

/* ========== LAYOUT ========== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.section-sm {
  padding: 60px 0;
}

/* ========== NAVIGATION ========== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(245, 166, 35, 0.1);
  transition: all 0.3s ease;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.nav-logo span {
  color: #F5A623;
}

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

.nav-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
  letter-spacing: 0.01em;
}

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

.nav-cta {
  background: #F5A623;
  color: #0A1628 !important;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.nav-cta:hover {
  background: #e6951a;
  transform: translateY(-1px);
}

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

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  margin: 6px 0;
  transition: all 0.3s;
}

/* ========== HERO SECTIONS ========== */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: #0A1628;
  overflow: visible;
  padding-top: 72px;
  padding-bottom: 60px;
}

.hero-medium {
  min-height: 75vh;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,22,40,0.85) 0%, rgba(10,22,40,0.6) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero h1 {
  color: #ffffff;
  margin-bottom: 24px;
}

.hero h1 .highlight {
  color: #F5A623;
}

.hero p.subtitle {
  font-size: 1.25rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 40px;
  line-height: 1.6;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: #F5A623;
  color: #0A1628;
}

.btn-primary:hover {
  background: #e6951a;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(245, 166, 35, 0.3);
}

.btn-outline {
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
  border-color: #F5A623;
  color: #F5A623;
}

.btn-dark {
  background: #0A1628;
  color: #ffffff;
}

.btn-dark:hover {
  background: #132240;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(10, 22, 40, 0.3);
}

.btn-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ========== CARDS ========== */
.card {
  background: #ffffff;
  border-radius: 16px;
  padding: 40px 32px;
  border: 1px solid #e8e8f0;
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(10, 22, 40, 0.08);
  border-color: rgba(245, 166, 35, 0.3);
}

.card-icon {
  width: 56px;
  height: 56px;
  background: rgba(245, 166, 35, 0.1);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.card h3 {
  margin-bottom: 12px;
  color: #0A1628;
}

.card-dark {
  background: #0f1d33;
  border-color: rgba(245, 166, 35, 0.15);
  color: #ffffff;
}

.card-dark h3 { color: #ffffff; }
.card-dark p { color: rgba(255,255,255,0.75); }

.card-dark:hover {
  border-color: rgba(245, 166, 35, 0.4);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* ========== GRIDS ========== */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

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

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

/* ========== SECTION BACKGROUNDS ========== */
.bg-navy {
  background: #0A1628;
}

.bg-dark {
  background: #060e1a;
}

.bg-light {
  background: #f7f8fc;
}

.bg-white {
  background: #ffffff;
}

/* ========== SECTION HEADERS ========== */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-header .tag {
  display: inline-block;
  background: rgba(245, 166, 35, 0.1);
  color: #F5A623;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.section-header.text-light .tag {
  background: rgba(245, 166, 35, 0.15);
}

.section-header p {
  font-size: 1.15rem;
  margin-top: 16px;
}

/* ========== IMAGE SECTIONS ========== */
.img-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.img-section img {
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(10, 22, 40, 0.12);
}

.img-section-reverse {
  direction: rtl;
}

.img-section-reverse > * {
  direction: ltr;
}

/* ========== COMPARISON TABLE ========== */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.comparison-table th {
  text-align: left;
  padding: 16px 20px;
  font-weight: 600;
  border-bottom: 2px solid #e8e8f0;
}

.comparison-table th:nth-child(2) {
  color: #888;
}

.comparison-table th:nth-child(3) {
  color: #F5A623;
}

.comparison-table td {
  padding: 16px 20px;
  border-bottom: 1px solid #e8e8f0;
  vertical-align: top;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table td:first-child {
  font-weight: 600;
  color: #0A1628;
  width: 25%;
}

.comparison-table td:nth-child(2) {
  color: #666;
}

.comparison-table td:nth-child(3) {
  color: #0A1628;
  font-weight: 500;
}

/* ========== TIMELINE ========== */
.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #F5A623, rgba(245,166,35,0.2));
}

.timeline-item {
  position: relative;
  margin-bottom: 48px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -34px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #F5A623;
  border: 3px solid #ffffff;
  box-shadow: 0 0 0 2px rgba(245, 166, 35, 0.2);
}

.timeline-item .phase-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #F5A623;
  margin-bottom: 6px;
}

.timeline-item h3 {
  margin-bottom: 8px;
}

.timeline-item .deliverable {
  margin-top: 12px;
  padding: 12px 16px;
  background: rgba(245, 166, 35, 0.08);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #0A1628;
}

/* ========== FORMS ========== */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: #0A1628;
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #e0e0e8;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s;
  background: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #F5A623;
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.1);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Dark form */
.form-dark label { color: rgba(255,255,255,0.8); }
.form-dark input,
.form-dark select,
.form-dark textarea {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.15);
  color: #ffffff;
}
.form-dark input:focus,
.form-dark select:focus,
.form-dark textarea:focus {
  border-color: #F5A623;
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.15);
}
.form-dark input::placeholder,
.form-dark textarea::placeholder {
  color: rgba(255,255,255,0.35);
}
.form-dark select option {
  background: #0A1628;
  color: #ffffff;
}
.form-dark select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23F5A623' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

/* ========== VALUES GRID ========== */
.value-item {
  display: flex;
  gap: 20px;
  margin-bottom: 36px;
}

.value-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: rgba(245, 166, 35, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

/* ========== FOOTER ========== */
.footer {
  background: #060e1a;
  padding: 60px 0 30px;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 40px;
}

.footer-logo {
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
}

.footer-logo span { color: #F5A623; }

.footer-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.footer-links a {
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}

.footer-links a:hover { color: #F5A623; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
}

/* ========== FAQ ========== */
.faq-item {
  border-bottom: 1px solid #e8e8f0;
  padding: 24px 0;
}

.faq-item:last-child { border-bottom: none; }

.faq-question {
  font-weight: 600;
  font-size: 1.05rem;
  color: #0A1628;
  margin-bottom: 8px;
}

.faq-answer {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.7;
}

/* ========== STAT COUNTER ========== */
.stats {
  display: flex;
  gap: 48px;
  margin-top: 40px;
}

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

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: #F5A623;
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-top: 8px;
}

/* ========== SCROLL ANIMATIONS ========== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ========== RESPONSIVE ========== */
@media (max-width: 968px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .img-section { grid-template-columns: 1fr; gap: 40px; }
  .img-section-reverse { direction: ltr; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(10, 22, 40, 0.98);
    padding: 24px;
    gap: 20px;
  }
  .stats { flex-wrap: wrap; gap: 24px; }
  .footer-inner { flex-direction: column; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .comparison-table { font-size: 0.85rem; }
  .comparison-table td, .comparison-table th { padding: 12px; }
}

@media (max-width: 640px) {
  .section { padding: 60px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero { min-height: 80vh; }
  .btn { padding: 14px 24px; font-size: 0.9rem; }
  .btn-group { flex-direction: column; }
}

/* ========== ACCESSIBILITY ========== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 10000;
  background: #F5A623;
  color: #0A1628;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 12px;
}

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #F5A623;
  outline-offset: 2px;
}

/* ========== PERFORMANCE: REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .fade-up { opacity: 1; transform: none; }
}
