/* ═══════════════════════════════════════════════
   FSO-Kimo Website — Clean Maritime Theme
   ═══════════════════════════════════════════════ */

:root {
  --navy: #0f172a;
  --navy-light: #1e293b;
  --navy-mid: #334155;
  --slate: #64748b;
  --slate-light: #94a3b8;
  --white: #f8fafc;
  --ocean: #0ea5e9;
  --ocean-dark: #0284c7;
  --ocean-glow: rgba(14, 165, 233, 0.15);
  --teal: #14b8a6;
  --coral: #f97316;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--navy);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Navigation ─── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--white);
  font-weight: 700;
  font-size: 1.125rem;
}

.nav-logo-icon {
  width: 28px;
  height: 28px;
  color: var(--ocean);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  text-decoration: none;
  color: var(--slate-light);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--white); }

.nav-mobile {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-sm { padding: 6px 16px; font-size: 0.8125rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }

.btn-primary {
  background: var(--ocean);
  color: white;
}
.btn-primary:hover { background: var(--ocean-dark); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.2);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.3);
}

/* ─── Hero ─── */
.hero {
  position: relative;
  padding: 160px 0 100px;
  overflow: hidden;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(14,165,233,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(20,184,166,0.08) 0%, transparent 50%);
}

.hero-content { position: relative; z-index: 1; }

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 100px;
  background: rgba(14,165,233,0.1);
  border: 1px solid rgba(14,165,233,0.2);
  color: var(--ocean);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--ocean) 0%, var(--teal) 50%, var(--coral) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  max-width: 680px;
  margin: 0 auto 40px;
  font-size: 1.125rem;
  color: var(--slate-light);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
}

.stat { text-align: center; }

.stat-value {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--slate);
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.1);
}

/* ─── Features ─── */
.features {
  padding: 120px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-header p {
  color: var(--slate-light);
  font-size: 1.125rem;
  max-width: 560px;
  margin: 0 auto;
}

.section-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  background: rgba(14,165,233,0.1);
  border: 1px solid rgba(14,165,233,0.2);
  color: var(--ocean);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--navy-light);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 32px;
  transition: all 0.3s;
}

.feature-card:hover {
  border-color: rgba(14,165,233,0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.feature-card.featured {
  background: linear-gradient(135deg, rgba(14,165,233,0.08), rgba(20,184,166,0.08));
  border-color: rgba(14,165,233,0.15);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.feature-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--slate-light);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* ─── Commander Kimo Section ─── */
.kimo-section {
  padding: 120px 0;
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-light) 100%);
}

.kimo-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.kimo-desc {
  font-size: 1.125rem;
  color: var(--slate-light);
  margin-bottom: 32px;
  line-height: 1.7;
}

.kimo-features { display: flex; flex-direction: column; gap: 16px; }

.kimo-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9375rem;
  color: var(--slate-light);
}

.check-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--teal);
  margin-top: 2px;
}

/* Chat demo */
.chat-window {
  background: var(--navy);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
}

.chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ocean), var(--teal));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.chat-name { font-weight: 600; font-size: 0.9375rem; }
.chat-status { font-size: 0.75rem; color: var(--teal); }

.chat-messages { padding: 20px; display: flex; flex-direction: column; gap: 16px; }

.chat-msg {
  padding: 14px 18px;
  border-radius: 16px;
  font-size: 0.875rem;
  line-height: 1.6;
  max-width: 90%;
}

.chat-msg.user {
  background: var(--ocean);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-msg.bot {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--white);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.chat-msg.bot strong { color: var(--ocean); }
.chat-msg.bot em { color: var(--slate-light); }

/* ─── Security ─── */
.security-section {
  padding: 120px 0;
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.security-item {
  text-align: center;
  padding: 32px 24px;
}

.security-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.security-item h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.security-item p {
  color: var(--slate-light);
  font-size: 0.8125rem;
  line-height: 1.6;
}

/* ─── About ─── */
.about-section {
  padding: 120px 0;
  background: var(--navy-light);
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.about-text h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.about-text p {
  color: var(--slate-light);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.about-values { display: flex; flex-direction: column; gap: 32px; }

.value h4 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--ocean);
}

.value p {
  color: var(--slate-light);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* ─── CTA ─── */
.cta-section {
  padding: 120px 0;
  text-align: center;
}

.cta-content h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.cta-content p {
  color: var(--slate-light);
  font-size: 1.125rem;
  max-width: 520px;
  margin: 0 auto 32px;
}

/* ─── Footer ─── */
.footer {
  padding: 40px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-inner {
  display: flex;
  align-items: start;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.9375rem;
  flex-shrink: 0;
}

.footer-logo {
  width: 24px;
  height: 24px;
  color: var(--ocean);
}

.footer-text p {
  color: var(--slate);
  font-size: 0.75rem;
  line-height: 1.6;
}

.footer-copy {
  margin-top: 8px;
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .security-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .nav-links.open { display: flex; }
  .nav-mobile { display: block; }

  .hero { padding: 120px 0 80px; }
  .hero-stats { gap: 24px; }

  .feature-grid { grid-template-columns: 1fr; }
  .kimo-layout { grid-template-columns: 1fr; gap: 48px; }
  .about-layout { grid-template-columns: 1fr; gap: 48px; }
  .security-grid { grid-template-columns: 1fr 1fr; }

  .footer-inner { flex-direction: column; }
}

@media (max-width: 480px) {
  .hero-stats { flex-direction: column; gap: 16px; }
  .stat-divider { width: 40px; height: 1px; }
  .security-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
}
