/* =========================================================
   Devtrox — Soft Modern Minimal
   Design System
   ========================================================= */

:root {
  --bg: #FAF8F4;
  --bg-2: #F1EDE5;
  --ink: #0B0F19;
  --ink-2: #2A2F3A;
  --muted: #6B7280;
  --line: #E6E1D6;
  --line-2: #EDE8DC;
  --accent: #FF7A59;
  /* warm coral */
  --accent-ink: #C9492A;
  --sage: #5C8F73;
  --amber: #E8A33D;
  --card: #FFFFFF;
  --shadow-sm: 0 1px 2px rgba(11, 15, 25, 0.04), 0 1px 1px rgba(11, 15, 25, 0.03);
  --shadow-md: 0 8px 24px -8px rgba(11, 15, 25, 0.08), 0 2px 6px rgba(11, 15, 25, 0.04);
  --shadow-lg: 0 30px 60px -20px rgba(11, 15, 25, 0.12), 0 12px 24px -12px rgba(11, 15, 25, 0.06);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 28px;
}

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html,
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  font-feature-settings: "ss01", "cv11";
  letter-spacing: -0.01em;
}

::selection {
  background: var(--ink);
  color: var(--bg);
}

/* Subtle grain overlay layered behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.06 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.55;
  mix-blend-mode: multiply;
}

/* ----------- Typography ----------- */
.font-serif {
  font-family: 'Instrument Serif', 'Fraunces', Georgia, serif;
  font-feature-settings: "ss01";
}

.font-display {
  font-family: 'Fraunces', Georgia, serif;
}

.font-mono {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}

.italic-serif {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}

h1,
h2,
h3 {
  letter-spacing: -0.035em;
  font-weight: 500;
}

h1 {
  line-height: 0.98;
}

h2 {
  line-height: 1.02;
}

.hero-headline {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.94;
}

.display-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ----------- Pills & Chips ----------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(11, 15, 25, 0.04);
  border: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-2);
  letter-spacing: -0.005em;
}

.pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
  display: inline-block;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 8px;
  background: var(--bg-2);
  color: var(--ink-2);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  border: 1px solid var(--line);
}

/* ----------- Buttons ----------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  transition: all 0.25s cubic-bezier(.2, .7, .2, 1);
  border: 1px solid transparent;
  white-space: nowrap;
  letter-spacing: -0.005em;
}

.btn-primary {
  background: var(--ink);
  color: var(--bg);
}

.btn-primary:hover {
  background: #1c2233;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  background: rgba(11, 15, 25, 0.04);
  border-color: rgba(11, 15, 25, 0.18);
}

.btn-accent {
  background: var(--accent);
  color: white;
}

.btn-accent:hover {
  background: #ef6a4a;
  transform: translateY(-1px);
}

.btn .arrow {
  display: inline-flex;
  transition: transform 0.3s cubic-bezier(.2, .7, .2, 1);
}

.btn:hover .arrow {
  transform: translateX(4px);
}

/* ----------- Cards ----------- */
.soft-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: all 0.4s cubic-bezier(.2, .7, .2, 1);
  position: relative;
}

.soft-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(11, 15, 25, 0.08);
}

.tinted-card {
  background: var(--bg-2);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}

/* ----------- Navbar ----------- */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: all 0.3s ease;
  background: rgba(250, 248, 244, 0.7);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent;
}

.nav-wrap.scrolled {
  border-bottom-color: var(--line);
  background: rgba(250, 248, 244, 0.92);
}

.nav-link {
  position: relative;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 450;
  padding: 6px 2px;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--ink);
}

.nav-link.active {
  color: var(--ink);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--accent);
}

/* Logo */
.logo-mark {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.logo-glyph {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--bg);
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 17px;
  line-height: 1;
  padding-bottom: 2px;
}

/* ----------- Mobile menu ----------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 100;
  transform: translateY(-100%);
  transition: transform 0.45s cubic-bezier(.7, 0, .2, 1);
}

.mobile-menu.open {
  transform: translateY(0);
}

.mobile-link {
  display: block;
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 44px;
  letter-spacing: -0.04em;
  line-height: 1.15;
  color: var(--ink);
  padding: 8px 0;
}

.mobile-link:hover {
  color: var(--accent);
}

/* ----------- Decorative orbs ----------- */
.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}

.orb-coral {
  background: radial-gradient(circle, #FF9A7E 0%, transparent 70%);
}

.orb-sage {
  background: radial-gradient(circle, #9CC1AF 0%, transparent 70%);
}

.orb-amber {
  background: radial-gradient(circle, #F3CC7E 0%, transparent 70%);
}

/* ----------- Sections ----------- */
section {
  position: relative;
  z-index: 2;
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 20%, var(--line) 80%, transparent);
}

/* ----------- Scroll reveal ----------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s cubic-bezier(.2, .7, .2, 1), transform 0.9s cubic-bezier(.2, .7, .2, 1);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.08s;
}

.reveal-delay-2 {
  transition-delay: 0.16s;
}

.reveal-delay-3 {
  transition-delay: 0.24s;
}

.reveal-delay-4 {
  transition-delay: 0.32s;
}

.reveal-delay-5 {
  transition-delay: 0.4s;
}

/* ----------- Marquee ----------- */
.marquee {
  display: flex;
  overflow: hidden;
  gap: 28px;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

.marquee-track {
  display: flex;
  gap: 28px;
  animation: marquee 50s linear infinite;
  flex-shrink: 0;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

/* ----------- Counters ----------- */
.metric-num {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.95;
}

/* ----------- Form ----------- */
.field {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  font-size: 16px;
  color: var(--ink);
  transition: border-color 0.2s;
}

.field:focus {
  outline: none;
  border-bottom-color: var(--ink);
}

.field::placeholder {
  color: var(--muted);
}

.field-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
  display: block;
}

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

select.field {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%230B0F19' stroke-width='1.5' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0 center;
  padding-right: 24px;
}

/* ----------- Custom underline link ----------- */
.u-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  padding-bottom: 2px;
  border-bottom: 1px solid currentColor;
  transition: color 0.2s, border-color 0.2s;
}

.u-link:hover {
  color: var(--accent-ink);
  border-color: var(--accent);
}

/* ----------- Image holders ----------- */
.img-soft {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  background: var(--bg-2);
}

.img-soft img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(.2, .7, .2, 1);
}

.img-soft:hover img {
  transform: scale(1.04);
}

/* ----------- Testimonial track ----------- */
.testimonial-track {
  display: flex;
  gap: 20px;
  animation: marquee 60s linear infinite;
}

/* ----------- Pricing ----------- */
.price-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
}

.price-card.featured {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.price-card.featured .field-label,
.price-card.featured .metric-num {
  color: var(--bg);
}

/* ----------- Number marker ----------- */
.num-marker {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 14px;
  color: var(--accent);
  display: inline-block;
  margin-right: 8px;
}

/* ----------- Timeline ----------- */
.timeline-item {
  position: relative;
  padding-left: 32px;
  padding-bottom: 36px;
  border-left: 1px solid var(--line);
}

.timeline-item:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--bg);
  border: 2px solid var(--ink);
}

.timeline-item.accent::before {
  border-color: var(--accent);
  background: var(--accent);
}

/* ----------- Counter inline ----------- */
.tab-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  background: var(--accent);
  color: white;
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* ----------- Responsive helpers ----------- */
@media (max-width: 768px) {
  h1.hero-headline {
    letter-spacing: -0.035em;
  }

  .mobile-link {
    font-size: 36px;
  }
}

/* ----------- Focus ring ----------- */
a:focus-visible,
button:focus-visible,
.field:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ----------- Cursor follow card ----------- */
.lift-card {
  transition: transform 0.35s cubic-bezier(.2, .7, .2, 1), box-shadow 0.35s;
}

.lift-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* ----------- Hero arrow ----------- */
.bouncing {
  animation: bounceY 2.4s ease-in-out infinite;
}

@keyframes bounceY {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(6px);
  }
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 999px;
  border: 2px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover {
  background: #d6cfbf;
}