/* ============================================
   D1 MARİTİME — DESIGN SYSTEM V3
   Modern, bold, magazine-meets-tech aesthetic
   ============================================ */

:root {
  /* Renkler — koyu navy + sıcak coral */
  --navy: #0a1628;
  --navy-deep: #050b14;
  --navy-soft: #1a2942;
  --cream: #faf7f2;
  --cream-warm: #f5ede0;
  --paper: #fffcf7;
  --coral: #ee4444;
  --coral-bright: #ff5555;
  --coral-deep: #c01e1e;
  --mint: #84cc16;
  --mint-deep: #65a30d;
  --ink: #0a1628;
  --ink-soft: #2a3a52;
  --ink-mute: #5a6a82;
  --ink-light: #8a96a8;
  --border: rgba(10,22,40,0.08);
  --border-strong: rgba(10,22,40,0.16);

  /* Type stacks */
  --serif: 'Fraunces', 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', 'Geist Mono', ui-monospace, monospace;

  /* Spacing scale */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px;
  --sp-9: 96px; --sp-10: 128px;

  /* Radius */
  --r-sm: 6px; --r: 10px; --r-lg: 16px; --r-xl: 24px;

  /* Shadows */
  --sh-1: 0 1px 2px rgba(10,22,40,0.04);
  --sh-2: 0 4px 12px rgba(10,22,40,0.06), 0 1px 3px rgba(10,22,40,0.04);
  --sh-3: 0 16px 48px rgba(10,22,40,0.10), 0 4px 12px rgba(10,22,40,0.06);
  --sh-4: 0 32px 80px rgba(10,22,40,0.15), 0 8px 24px rgba(10,22,40,0.08);
  --sh-coral: 0 16px 48px rgba(238,68,68,0.25), 0 4px 12px rgba(238,68,68,0.15);

  /* Easings */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============================================ RESET ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* ============================================ TYPOGRAPHY ============================================ */
.display-1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(56px, 11vw, 140px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  font-variation-settings: "opsz" 144;
}
.display-2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 7vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.035em;
}
.display-3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.025em;
}
.h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(36px, 5vw, 56px); line-height: 1.05; letter-spacing: -0.02em; }
.h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 3.5vw, 40px); line-height: 1.1; letter-spacing: -0.018em; }
.h3 { font-weight: 600; font-size: clamp(20px, 2vw, 24px); line-height: 1.3; letter-spacing: -0.01em; }
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--coral);
}
.lead { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.55; color: var(--ink-soft); }
em.accent { font-style: italic; color: var(--coral); font-variation-settings: "opsz" 144; }

/* Animated underlines */
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 500; color: var(--coral);
  transition: gap 0.3s var(--ease-out);
}
.link-arrow svg { transition: transform 0.3s var(--ease-out); }
.link-arrow:hover { gap: 14px; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ============================================ LAYOUT ============================================ */
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--sp-5); }
.wrap-narrow { max-width: 880px; margin: 0 auto; padding: 0 var(--sp-5); }
.wrap-wide { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--sp-5); }

section { padding: clamp(60px, 10vw, 140px) 0; position: relative; }

/* ============================================ BUTTONS ============================================ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px;
  font-size: 15px; font-weight: 500;
  border-radius: var(--r);
  transition: all 0.2s var(--ease-out);
  white-space: nowrap;
}
.btn-coral {
  background: var(--coral); color: white;
  box-shadow: var(--sh-coral);
}
.btn-coral:hover {
  background: var(--coral-bright);
  transform: translateY(-2px);
  box-shadow: 0 24px 60px rgba(238,68,68,0.35), 0 8px 16px rgba(238,68,68,0.2);
}
.btn-coral:active { transform: translateY(0); }
.btn-dark {
  background: var(--navy); color: var(--cream);
}
.btn-dark:hover { background: var(--navy-soft); transform: translateY(-2px); }
.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.btn-line {
  background: transparent; color: var(--ink);
  padding: 14px 0; font-weight: 500;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
}
.btn-line:hover { color: var(--coral); border-color: var(--coral); }
.btn-lg { padding: 18px 32px; font-size: 17px; }
.btn-sm { padding: 10px 18px; font-size: 14px; }

/* Magic arrow that animates on hover */
.btn-arrow svg {
  transition: transform 0.3s var(--ease-out);
}
.btn-arrow:hover svg { transform: translateX(6px) rotate(-2deg); }

/* ============================================ NAV ============================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 0;
  background: rgba(250,247,242,0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: all 0.3s var(--ease-out);
}
.nav.scrolled {
  border-bottom-color: var(--border);
  background: rgba(250,247,242,0.92);
  padding: 12px 0;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-brand {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--serif); font-size: 22px; font-weight: 500; letter-spacing: -0.015em;
  color: var(--ink);
}
.nav-brand-mark {
  width: 40px; height: 40px; border-radius: var(--r-sm);
  background: var(--coral); display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 22px; font-weight: 500; color: white;
  transition: transform 0.3s var(--ease-spring);
}
.nav-brand:hover .nav-brand-mark { transform: rotate(-8deg) scale(1.08); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  padding: 8px 16px; font-size: 14.5px; color: var(--ink-soft);
  border-radius: var(--r-sm); transition: all 0.2s;
}
.nav-link:hover { background: var(--cream-warm); color: var(--ink); }
.nav-link.active { color: var(--coral); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-mobile-toggle { display: none; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta .btn-ghost { display: none; }
}

/* ============================================ MARQUEE ============================================ */
.marquee {
  overflow: hidden;
  padding: 20px 0;
  background: var(--navy);
  color: var(--cream);
  border-block: 1px solid var(--navy-soft);
}
.marquee-track {
  display: flex; gap: 60px;
  animation: scroll-x 40s linear infinite;
  white-space: nowrap;
  font-family: var(--serif); font-size: 32px; font-weight: 400;
  font-style: italic; letter-spacing: -0.02em;
}
.marquee-track span { display: inline-flex; align-items: center; gap: 40px; }
.marquee-track span::after {
  content: '★'; color: var(--coral); font-style: normal;
}
@keyframes scroll-x { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================ CARDS / FEATURES ============================================ */
.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
  transition: all 0.3s var(--ease-out);
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-3);
  border-color: var(--border-strong);
}
.card-dark {
  background: var(--navy);
  color: var(--cream);
  border-color: var(--navy-soft);
}
.card-coral {
  background: var(--coral);
  color: white;
}

/* ============================================ TAGS ============================================ */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-family: var(--mono); font-size: 11px;
  font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--cream-warm); color: var(--ink-soft);
}
.tag-coral { background: rgba(238,68,68,0.1); color: var(--coral); }
.tag-mint { background: rgba(132,204,22,0.15); color: var(--mint-deep); }
.tag-dark { background: var(--navy); color: var(--cream); }

/* ============================================ FOOTER ============================================ */
.footer {
  background: var(--navy);
  color: var(--cream);
  padding: 80px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}
.footer h4 { font-size: 13px; font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.12em; color: var(--cream); margin-bottom: 20px; opacity: 0.6; font-weight: 500; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 12px; }
.footer ul a { color: rgba(250,247,242,0.7); font-size: 14.5px; transition: color 0.2s; }
.footer ul a:hover { color: var(--coral); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 32px; border-top: 1px solid rgba(250,247,242,0.1); font-size: 13px; color: rgba(250,247,242,0.5); }
.footer-tagline { font-family: var(--serif); font-size: 36px; font-weight: 400; font-style: italic; letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 24px; max-width: 400px; }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-tagline { font-size: 28px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* ============================================ ANIMATIONS ============================================ */
.fade-up { opacity: 0; transform: translateY(40px); transition: all 1s var(--ease-out); }
.fade-up.in { opacity: 1; transform: translateY(0); }
.fade-in { opacity: 0; transition: opacity 1s var(--ease-out); }
.fade-in.in { opacity: 1; }

.split-line { overflow: hidden; display: block; }
.split-line span { display: inline-block; transform: translateY(110%); transition: transform 0.9s var(--ease-out); }
.split-line.in span { transform: translateY(0); }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes pulse { 0%, 100% { opacity: 0.6; } 50% { opacity: 1; } }
@keyframes ripple {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(2.4); opacity: 0; }
}
@keyframes spin-slow { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ============================================ UTILITIES ============================================ */
.center { text-align: center; }
.mb-1 { margin-bottom: var(--sp-3); }
.mb-2 { margin-bottom: var(--sp-5); }
.mb-3 { margin-bottom: var(--sp-6); }
.mb-4 { margin-bottom: var(--sp-7); }
.mb-5 { margin-bottom: var(--sp-8); }
.text-mute { color: var(--ink-mute); }
.text-light { color: var(--ink-light); }
.text-coral { color: var(--coral); }
.text-mint { color: var(--mint-deep); }
.text-cream { color: var(--cream); }

/* Decorative dot grid */
.dot-grid {
  background-image: radial-gradient(circle, var(--border-strong) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Selection */
::selection { background: var(--coral); color: white; }

/* Scrollbar (subtle) */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--ink-light); border-radius: 6px; border: 3px solid var(--cream); }
::-webkit-scrollbar-thumb:hover { background: var(--ink-mute); }
