/* BLADES — blades-app.com. Typography matches the product renders: Playfair Display + Inter, cyan italic accent. */

@font-face { font-family: "Playfair Display"; src: url(../fonts/playfair-display-latin-wght-normal.woff2) format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url(../fonts/playfair-display-latin-wght-italic.woff2) format("woff2"); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url(../fonts/inter-latin-wght-normal.woff2) format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --navy: #0a1628;
  --night: #070f1f;
  --cyan: #19c6e6;
  --cyan-deep: #0786a3;   /* cyan for text on light grounds */
  --cream: #f4efe7;
  --mist: #b9c7da;
  --light: #f2f4f8;
  --white: #ffffff;
  --ink: #0a1628;
  --muted: #4b5b72;
  --line: rgba(10, 22, 40, 0.1);

  --serif: "Playfair Display", "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --pad: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-variant-numeric: lining-nums;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

h1, h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.04;
  text-wrap: balance;
}
h1 em, h2 em { font-style: italic; color: var(--cyan); }

.skip { position: absolute; left: 16px; top: -80px; z-index: 50; background: var(--cyan); color: var(--night); padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 54px; padding: 0 28px;
  border-radius: 999px;
  background: var(--cyan); color: #04111f;
  font-weight: 600; font-size: 16px; text-decoration: none; white-space: nowrap;
  transition: transform 0.25s var(--ease), background-color 0.25s ease, box-shadow 0.25s ease;
}
.btn:hover { background: #4fd6ef; box-shadow: 0 8px 28px rgba(25, 198, 230, 0.35); }
.btn:active { transform: scale(0.97); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--white); box-shadow: inset 0 0 0 1.5px var(--ink); }

/* ---------- Navigation ---------- */
.nav-wrap { position: fixed; top: 0; left: 0; right: 0; z-index: 20; padding: 14px var(--pad); pointer-events: none; }
.nav {
  pointer-events: auto;
  max-width: 1160px; margin: 0 auto;
  height: 62px; padding: 0 12px 0 24px;
  display: flex; align-items: center; gap: 24px;
  border-radius: 999px;
  background: rgba(7, 15, 31, 0.9);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09);
}
.nav-logo { display: flex; align-items: center; min-height: 44px; }
.nav-logo img { height: 26px; width: auto; }
.nav-links { display: flex; gap: 32px; margin-left: auto; }
.nav-links a { color: #d6deea; text-decoration: none; font-size: 15px; font-weight: 500; transition: color 0.2s ease; }
.nav-links a:hover { color: var(--white); }
.nav .btn-sm { margin-left: 8px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: max(100svh, 640px);
  background: var(--night);
  overflow: hidden;
  display: flex; align-items: center;
}
.hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 50%;
}
.hero-text {
  position: relative; z-index: 1;
  width: 100%; max-width: 1280px; margin: 0 auto;
  padding: 120px var(--pad) 80px;
}
.hero h1 { color: var(--white); font-size: clamp(44px, 5.8vw, 92px); max-width: 9.5em; }
.hero-sub { margin-top: 28px; max-width: 24em; color: var(--mist); font-size: clamp(18px, 1.55vw, 23px); line-height: 1.45; }
.hero-cta { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.hero-note { color: var(--mist); font-size: 15px; }

.hero-text > * { animation: arrive 0.9s var(--ease) both; }
.hero-text > :nth-child(2) { animation-delay: 0.1s; }
.hero-text > :nth-child(3) { animation-delay: 0.2s; }
.hero-img { animation: fade 1.4s ease both; }
@keyframes arrive { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; transform: scale(1.03); } to { opacity: 1; transform: none; } }

/* ---------- Shared section heads ---------- */
.section-sub { margin-top: 18px; color: var(--muted); font-size: clamp(17px, 1.4vw, 20px); }
.roles h2, .pricing h2, .faq h2 { font-size: clamp(36px, 4.4vw, 64px); color: var(--ink); }
.roles h2 em, .pricing h2 em { color: var(--cyan-deep); }

/* ---------- Roles: manned and unmanned ---------- */
.roles { background: var(--light); padding: clamp(96px, 11vw, 150px) var(--pad) 72px; text-align: center; }
.role-cards {
  max-width: 980px; margin: 56px auto 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  text-align: left;
}
.role-card {
  position: relative;
  padding: clamp(28px, 3.4vw, 40px);
  border-radius: 28px;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(10, 22, 40, 0.04), 0 18px 40px -24px rgba(10, 22, 40, 0.25);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.role-card:hover { transform: translateY(-4px); box-shadow: 0 1px 0 rgba(10, 22, 40, 0.04), 0 28px 50px -24px rgba(10, 22, 40, 0.32); }
.role-icon {
  display: grid; place-items: center;
  width: 76px; height: 76px; border-radius: 22px;
  background: var(--navy);
}
.role-icon svg { width: 52px; height: 52px; fill: none; stroke: var(--cyan); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.role-card h3 { margin-top: 26px; font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 2.6vw, 36px); letter-spacing: -0.02em; line-height: 1.1; }
.role-card > p { margin-top: 8px; color: var(--muted); }
.role-card ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.role-card li { position: relative; padding-left: 26px; line-height: 1.45; }
.role-card li::before { content: ""; position: absolute; left: 4px; top: 0.55em; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan-deep); }
.role-both {
  display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 6px;
  margin: 28px auto 0; padding: 12px 22px;
  border-radius: 999px; background: var(--white);
  color: var(--muted); font-size: 15px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.role-both span { color: var(--ink); font-weight: 600; }

/* ---------- Feature cards (the renders), on a slowly flowing band ---------- */
.cards { background: var(--light); padding: 40px 0 clamp(96px, 11vw, 140px); overflow: hidden; }
.marquee {
  --cw: min(720px, 80vw);
  --gap: clamp(14px, 1.8vw, 24px);
  overflow-x: auto; scrollbar-width: none;
  padding: 4px var(--pad);
}
.marquee::-webkit-scrollbar { display: none; }
.marquee:focus-visible { outline-offset: -3px; }
.js .marquee { overflow: hidden; padding: 4px 0; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.js .marquee.is-held { cursor: grabbing; }
.strip, .set { display: flex; gap: var(--gap); }
.strip { width: max-content; will-change: transform; }
.card {
  /* Sizes come from the card width (--cw), not container queries: Safari mislays size-contained
     flex items inside the moving band and draws the cards on top of each other. */
  position: relative;
  flex: none;
  width: var(--cw); min-width: var(--cw);
  border-radius: clamp(20px, 2.4vw, 30px);
  overflow: hidden;
  background: var(--bg, var(--navy));
  display: flex; flex-direction: column;
  isolation: isolate;
  -webkit-transform: translateZ(0); transform: translateZ(0);
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
}
.card img { display: block; width: 100%; height: auto; -webkit-user-drag: none; }
.card-text { position: absolute; left: calc(var(--cw) * 0.05); top: calc(var(--cw) * 0.046); }
.card h2 { max-width: calc(var(--cw) * 0.64); color: var(--cream); font-size: max(calc(var(--cw) * 0.05), 30px); }
.card p { max-width: calc(var(--cw) * 0.34); margin-top: calc(var(--cw) * 0.013); color: var(--mist); font-size: max(calc(var(--cw) * 0.02), 14px); line-height: 1.4; }

/* Narrow cards (phones): the heading sits above the picture instead of on it. */
@media (max-width: 640px) {
  .card-text { position: static; order: -1; padding: 30px 24px 8px; }
  .card h2 { max-width: none; font-size: clamp(30px, calc(var(--cw) * 0.086), 42px); }
  .card p { max-width: none; margin-top: 10px; font-size: 17px; }
  .card img { margin-top: auto; height: calc(var(--cw) * 0.92); object-fit: cover; object-position: var(--pos, 50% 60%); }
}

/* ---------- Pricing ---------- */
.pricing { background: var(--white); padding: clamp(96px, 11vw, 150px) var(--pad); text-align: center; }
.plans {
  margin: 56px auto 0; max-width: 880px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  text-align: left;
}
.plan {
  display: flex; flex-direction: column;
  padding: 36px;
  border-radius: 28px;
  background: var(--light);
}
.plan h3 { font-family: var(--serif); font-weight: 400; font-size: 48px; line-height: 1; letter-spacing: -0.03em; }
.plan ul { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; gap: 12px; }
.plan li { position: relative; padding-left: 30px; }
.plan li::before {
  content: ""; position: absolute; left: 0; top: 0.3em;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--cyan-deep) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.6' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.plan .btn { margin-top: auto; width: 100%; }
.plan-pro { background: var(--navy); color: var(--white); }
.plan-pro li::before { background-color: #0fa7c6; }

/* ---------- FAQ ---------- */
.faq { background: var(--white); padding: 0 var(--pad) clamp(96px, 11vw, 150px); }
.faq h2 { text-align: center; }
.faq-list { max-width: 760px; margin: 48px auto 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 0;
  font-size: 18px; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 14px 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 2px 14px no-repeat;
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 40px 24px 0; max-width: 62ch; color: var(--muted); }
.faq-more { max-width: 760px; margin: 28px auto 0; color: var(--muted); }

/* ---------- Closer ---------- */
.closer {
  background:
    radial-gradient(ellipse 70% 60% at 50% 115%, rgba(25, 198, 230, 0.28), transparent 70%),
    var(--night);
  color: var(--white);
  text-align: center;
  padding: clamp(110px, 12vw, 170px) var(--pad);
}
.closer h2 { font-size: clamp(38px, 5vw, 76px); max-width: 12em; margin: 0 auto; }
.closer .section-sub { color: var(--mist); }
.closer .btn { margin-top: 40px; }

/* ---------- Footer ---------- */
.foot { background: #050b16; color: var(--mist); padding: 44px var(--pad); }
.foot-in { max-width: 1160px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 20px 40px; }
.foot-logo { height: 22px; width: auto; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 15px; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: var(--white); }
.foot-copy { margin-left: auto; font-size: 14px; }

/* ---------- Scroll entrances ---------- */
.js .rv { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0ms); }
.js .rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-text > *, .hero-img { animation: none; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  .role-card, .btn { transition: none; }
}

/* ---------- Tablet and phone ---------- */
@media (max-width: 820px) {
  .nav { height: 56px; padding: 0 8px 0 18px; }
  .nav-links { display: none; }
  .nav .btn-sm { margin-left: auto; }
  .nav-logo img { height: 22px; }

  .hero { display: block; min-height: 0; }
  .hero-text { padding: 124px var(--pad) 8px; }
  .hero-img { position: static; height: auto; aspect-ratio: 1 / 1.02; object-position: 70% 50%; }

  .role-cards { grid-template-columns: 1fr; margin-top: 40px; }
  .role-both { border-radius: 20px; }
  .marquee { --cw: 82vw; }

  .plans { grid-template-columns: 1fr; }
  .plan { padding: 30px 26px; }

  .foot-copy { margin-left: 0; width: 100%; }
}
