/* ============================================================
   FILMLANCE — cinematic, elegant, class
   Palette sampled from the FilmLance logo:
     Ink #1b1b1b (the F) · Slate #66788e (the clapper)
     Paper #fdfcfa (the background)
   Every surface, gradient and glow is graded from these three.
   ============================================================ */

:root {
  /* Sampled from the FilmLance logo: clapper slate, logo black, logo white */
  --ink: #1b1b1b;
  --ink-2: #222224;
  --ink-3: #2b2c2f;
  --slate: #66788e;
  --slate-deep: #4c5a6e;
  --slate-light: #9aa6b8;
  --silver: #cfd3d9;
  --paper: #fdfcfa;
  --paper-2: #f1eeea;
  --line-dark: rgba(255, 255, 255, 0.12);
  --line-light: rgba(27, 27, 27, 0.14);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", -apple-system, "Segoe UI", sans-serif;
  --radius: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--ink);
  color: var(--silver);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--slate); color: #fff; }

img { max-width: 100%; display: block; }
a { color: inherit; }

.container { width: min(1180px, 92%); margin: 0 auto; }
.section { padding: clamp(72px, 9vw, 128px) 0; }

/* ---------- film grain ---------- */
.grain {
  position: fixed; inset: -50%; width: 200%; height: 200%;
  pointer-events: none; z-index: 2000; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 8s steps(10) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-2%, 2%); }
  40% { transform: translate(2%, -1%); }
  60% { transform: translate(-1%, -2%); }
  80% { transform: translate(1%, 2%); }
}

/* ---------- type ---------- */
.eyebrow {
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--slate-light); margin-bottom: 18px;
}
.eyebrow-light { color: rgba(255, 255, 255, 0.55); }

.section-title {
  font-family: var(--serif);
  font-size: clamp(38px, 5.4vw, 64px);
  font-weight: 600; line-height: 1.08;
  color: var(--ink); letter-spacing: -0.01em;
  margin-bottom: 18px;
}
.section-title-light { color: var(--paper); }
.serif-italic { font-style: italic; font-weight: 500; }

.section-sub {
  max-width: 620px; font-size: 17px; color: #4c5260;
  margin-bottom: 56px;
}

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--sans); font-weight: 700; font-size: 14px;
  letter-spacing: 0.06em; text-decoration: none; cursor: pointer;
  padding: 15px 32px; border-radius: 999px; border: 1px solid transparent;
  transition: transform 0.35s var(--ease), background 0.35s, color 0.35s, border-color 0.35s, box-shadow 0.35s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: #fff; box-shadow: 0 12px 40px rgba(247, 246, 243, 0.25); transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: #000; box-shadow: 0 14px 34px rgba(27,27,27,0.28); transform: translateY(-2px); }
.btn-ghost { border-color: var(--line-dark); color: var(--paper); background: transparent; }
.btn-ghost:hover { border-color: var(--paper); transform: translateY(-2px); }
.btn-small { padding: 11px 24px; font-size: 13px; background: var(--paper); color: var(--ink); }
.btn-small:hover { background: #fff; transform: translateY(-2px); }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(11, 12, 16, 0.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line-dark);
}
.nav-inner {
  width: min(1280px, 94%); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0;
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand-logo { height: 46px; width: auto; border-radius: 9px; box-shadow: 0 4px 18px rgba(0,0,0,0.35); }
.nav-links { display: flex; gap: 34px; }
.nav-links a {
  text-decoration: none; font-size: 13.5px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: rgba(247, 246, 243, 0.72);
  transition: color 0.3s; position: relative;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 1px; width: 0;
  background: var(--paper); transition: width 0.35s var(--ease);
}
.nav-links a:hover { color: var(--paper); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 14px; }

.menu-btn {
  display: none; flex-direction: column; gap: 6px; background: none;
  border: 0; cursor: pointer; padding: 8px;
}
.menu-btn span { width: 24px; height: 2px; background: var(--paper); transition: 0.3s; }
.mobile-menu {
  display: none; flex-direction: column; gap: 6px;
  background: rgba(11, 12, 16, 0.97); backdrop-filter: blur(14px);
  padding: 10px 4% 26px; border-bottom: 1px solid var(--line-dark);
}
.mobile-menu.open { display: flex; }
.mobile-menu a:not(.btn) {
  color: var(--paper); text-decoration: none; font-weight: 600;
  padding: 12px 4px; border-bottom: 1px solid var(--line-dark); font-size: 15px;
}
.mobile-menu .btn { margin-top: 14px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  background:
    radial-gradient(1100px 520px at 50% -8%, rgba(102, 120, 142, 0.34), transparent 62%),
    radial-gradient(800px 420px at 88% 108%, rgba(102, 120, 142, 0.14), transparent 60%),
    linear-gradient(180deg, #202124 0%, var(--ink) 55%, #131314 100%);
  overflow: hidden;
  padding: 120px 0 90px;
}
/* logo-grade wash: the whole hero is graded toward clapper slate */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, rgba(102,120,142,0.16), transparent 45%, rgba(27,27,27,0.35));
  mix-blend-mode: overlay;
}
.hero-spotlight {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(closest-side at 50% 34%, rgba(154,166,184,0.16), transparent 70%);
  animation: breathe 7s ease-in-out infinite;
}
@keyframes breathe { 0%,100% { opacity: 0.7; } 50% { opacity: 1; } }

.hero-inner { position: relative; z-index: 2; width: min(900px, 92%); margin: 0 auto; }
.hero .eyebrow { color: var(--slate-light); }
.hero-title {
  font-family: var(--serif);
  font-size: clamp(52px, 9vw, 108px);
  font-weight: 600; line-height: 1.02; letter-spacing: -0.015em;
  color: var(--paper); margin-bottom: 24px;
  text-wrap: balance;
}
.hero-sub {
  font-size: clamp(16px, 2vw, 19px); font-weight: 300;
  color: rgba(253, 252, 250, 0.72);
  max-width: 640px; margin: 0 auto 40px;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 64px; }

.hero-apps {
  display: flex; align-items: center; justify-content: center; gap: 22px; flex-wrap: wrap;
  padding-top: 30px; border-top: 1px solid var(--line-dark);
}
.hero-app { text-decoration: none; display: flex; flex-direction: column; gap: 2px; transition: transform 0.3s var(--ease); }
.hero-app:hover { transform: translateY(-3px); }
.hero-app-tag { font-size: 10.5px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--slate-light); font-weight: 700; }
.hero-app-name { font-family: var(--serif); font-size: 21px; color: var(--paper); font-weight: 600; }
.hero-app-div { width: 1px; height: 34px; background: var(--line-dark); }

/* film strips */
.hero-strip {
  position: absolute; left: 0; right: 0; height: 44px; z-index: 1;
  background-color: #101011;
  background-image:
    radial-gradient(circle at 12px 50%, rgba(253,252,250,0.28) 5.5px, transparent 6.5px);
  background-size: 34px 44px; background-repeat: repeat-x;
  border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark);
  opacity: 0.85;
}
.hero-strip-top { top: 76px; transform: rotate(-1.2deg) scale(1.02); }
.hero-strip-bottom { bottom: 34px; transform: rotate(1.1deg) scale(1.02); }

/* ---------- marquee ---------- */
.marquee {
  background: var(--slate); color: var(--paper);
  overflow: hidden; white-space: nowrap; padding: 15px 0;
  border-top: 1px solid rgba(255,255,255,0.14);
  border-bottom: 1px solid rgba(255,255,255,0.14);
}
.marquee-track { display: inline-flex; gap: 34px; align-items: center; animation: marquee 26s linear infinite; }
.marquee-track span { font-size: 13px; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase; }
.marquee-track i { font-style: normal; font-size: 9px; opacity: 0.7; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- ecosystem ---------- */
.ecosystem { background: var(--paper); color: var(--ink); }
.app-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
}
.app-card {
  background: #fff;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 38px 34px;
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.app-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: linear-gradient(90deg, var(--ink), var(--slate) 60%, var(--slate-light));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.app-card:hover { transform: translateY(-8px); box-shadow: 0 30px 60px rgba(27,27,27,0.13); }
.app-card:hover::before { transform: scaleX(1); }
.app-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.app-index { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--slate); }
.app-phase {
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--paper); background: var(--ink);
  padding: 7px 14px; border-radius: 999px;
}
.app-name { font-family: var(--serif); font-size: 34px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.app-tagline { font-size: 14px; font-weight: 600; color: var(--slate-deep); margin-bottom: 14px; }
.app-desc { font-size: 15px; color: #4c5260; margin-bottom: 20px; }
.app-features { list-style: none; margin-bottom: 18px; display: flex; flex-direction: column; gap: 10px; }
.app-features li { font-size: 14px; color: #33373f; padding-left: 24px; position: relative; }
.app-features li::before {
  content: ""; position: absolute; left: 2px; top: 8px;
  width: 11px; height: 6px;
  border-left: 2px solid var(--slate); border-bottom: 2px solid var(--slate);
  transform: rotate(-45deg) translateY(-2px);
}
.app-trust { font-size: 12.5px; color: #7a7f8a; font-style: italic; margin-bottom: 22px; }
.app-link {
  margin-top: auto; text-decoration: none; font-weight: 800; font-size: 14px;
  letter-spacing: 0.04em; color: var(--ink);
  display: inline-flex; align-items: center; gap: 8px;
  padding-top: 18px; border-top: 1px solid var(--line-light);
}
.app-link .arrow { transition: transform 0.3s var(--ease); color: var(--slate); }
.app-link:hover .arrow { transform: translateX(6px); }

/* ---------- journey ---------- */
.journey {
  background:
    radial-gradient(900px 420px at 12% 0%, rgba(102,120,142,0.22), transparent 60%),
    linear-gradient(180deg, var(--ink) 0%, #131315 100%);
  color: var(--silver); position: relative;
}
.journey::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, rgba(102,120,142,0.12), transparent 50%);
  mix-blend-mode: overlay;
}
.journey-track {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
  margin-top: 60px; position: relative; z-index: 1;
}
.journey-step {
  border: 1px solid var(--line-dark); border-radius: var(--radius);
  padding: 36px 32px; background: rgba(253, 252, 250, 0.025);
  backdrop-filter: blur(4px);
  transition: border-color 0.4s, transform 0.4s var(--ease), background 0.4s;
}
.journey-step:hover { border-color: rgba(154,166,184,0.45); transform: translateY(-6px); background: rgba(102,120,142,0.08); }
.journey-num {
  font-family: var(--serif); font-style: italic; font-size: 44px;
  color: transparent; -webkit-text-stroke: 1px var(--slate-light);
  display: block; margin-bottom: 16px;
}
.journey-step h3 { font-family: var(--serif); font-size: 28px; color: var(--paper); margin-bottom: 12px; font-weight: 600; }
.journey-step p { font-size: 15px; color: rgba(253,252,250,0.66); }
.journey-step strong { color: var(--paper); }

/* ---------- about ---------- */
.about { background: var(--paper-2); color: var(--ink); }
.about-grid {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.about-media { position: relative; }
.about-logo {
  width: 100%; border-radius: var(--radius);
  box-shadow: 0 30px 70px rgba(27,27,27,0.18);
  position: relative; z-index: 1;
  filter: saturate(0.96) contrast(1.02);
}
.about-frame {
  position: absolute; inset: 22px -22px -22px 22px; z-index: 0;
  border: 1px solid var(--slate); border-radius: var(--radius); opacity: 0.55;
}
.about-copy p { color: #4c5260; font-size: 16.5px; margin-bottom: 18px; }
.about-copy p strong { color: var(--ink); }
.about-stats { display: flex; gap: 44px; margin-top: 34px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat-num, .stat-suffix {
  font-family: var(--serif); font-size: 46px; font-weight: 700; color: var(--ink); line-height: 1;
}
.stat-suffix { font-size: 30px; color: var(--slate); }
.stat > span:first-child { display: inline; }
.stat-label { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: #7a7f8a; margin-top: 8px; font-weight: 600; }

/* ---------- contact ---------- */
.contact { background: var(--paper); color: var(--ink); }
.contact-grid {
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(40px, 6vw, 80px);
  margin-top: 20px; align-items: start;
}
.contact-row { padding: 22px 0; border-bottom: 1px solid var(--line-light); }
.contact-row:first-child { border-top: 1px solid var(--line-light); }
.contact-label {
  display: block; font-size: 11px; font-weight: 800;
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--slate);
  margin-bottom: 8px;
}
.contact-value { font-size: 18px; font-weight: 600; color: var(--ink); text-decoration: none; }
a.contact-value:hover { color: var(--slate-deep); }
.contact-value.muted { color: #7a7f8a; font-weight: 400; font-size: 16px; }
.contact-apps { display: flex; gap: 18px; flex-wrap: wrap; }
.contact-apps a { font-size: 16px; font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--slate-light); padding-bottom: 2px; }
.contact-apps a:hover { color: var(--slate-deep); }
.contact-note {
  margin-top: 26px; background: var(--ink); color: var(--silver);
  border-radius: var(--radius); padding: 24px 26px; font-size: 14.5px;
  border-left: 4px solid var(--slate);
}

.contact-form {
  background: #fff; border: 1px solid var(--line-light);
  border-radius: var(--radius); padding: clamp(28px, 4vw, 44px);
  box-shadow: 0 24px 60px rgba(27,27,27,0.09);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 20px; display: flex; flex-direction: column; }
.field label {
  font-size: 11.5px; font-weight: 800; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--slate-deep); margin-bottom: 9px;
}
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: 15.5px; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line-light);
  border-radius: 12px; padding: 14px 16px; outline: none;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
  width: 100%; appearance: none;
}
.field textarea { resize: vertical; min-height: 130px; }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2366788e' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 18px center;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--slate); background: #fff;
  box-shadow: 0 0 0 4px rgba(102, 120, 142, 0.16);
}
.field input.invalid, .field textarea.invalid { border-color: #b3402e; box-shadow: 0 0 0 4px rgba(179, 64, 46, 0.12); }

.form-error {
  font-size: 14px; color: #a83a2b; background: rgba(179,64,46,0.08);
  border: 1px solid rgba(179,64,46,0.25); border-radius: 10px;
  padding: 12px 16px; margin-bottom: 18px;
}
.btn-submit { width: 100%; position: relative; }
.btn-submit .btn-spinner {
  display: none; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(253,252,250,0.3); border-top-color: var(--paper);
  animation: spin 0.7s linear infinite;
}
.btn-submit.loading .btn-spinner { display: inline-block; }
.btn-submit.loading .btn-text { opacity: 0.6; }
.btn-submit:disabled { cursor: not-allowed; opacity: 0.75; transform: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-note { font-size: 13px; color: #7a7f8a; margin-top: 14px; text-align: center; }
.form-note.success { color: #2e6b3e; font-weight: 600; }
.form-note.warning { color: #a83a2b; font-weight: 600; }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: rgba(253,252,250,0.6); padding: 64px 0 34px; border-top: 1px solid var(--line-dark); }
.footer-grid {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px;
  margin-bottom: 44px; align-items: start;
}
.footer-brand { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.footer-brand .brand-word { color: var(--paper); }
.footer-brand p { font-size: 14px; margin-top: 6px; }
.footer-nav, .footer-apps { display: flex; flex-direction: column; gap: 12px; }
.footer-nav a, .footer-apps a { text-decoration: none; font-size: 14.5px; font-weight: 500; transition: color 0.3s; }
.footer-nav a:hover, .footer-apps a:hover { color: var(--paper); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding-top: 26px; border-top: 1px solid var(--line-dark); font-size: 13px;
}
.footer-tag { letter-spacing: 0.2em; text-transform: uppercase; font-size: 11px; color: var(--slate-light); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .app-grid, .journey-track { grid-template-columns: 1fr; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 420px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-links, .nav-cta .btn { display: none; }
  .menu-btn { display: flex; }
  .form-row { grid-template-columns: 1fr; }
  .hero-strip-top { top: 70px; }
  .footer-grid { grid-template-columns: 1fr; }
  .about-stats { gap: 28px; }
  .hero-apps { flex-direction: column; gap: 16px; }
  .hero-app-div { display: none; }
  .hero-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
