:root {
  --accent: #FF6746;
  --hero-bg: #14173D;
  --btn-radius: 999px;
  --ink: #16183A;
  --ink-soft: #5B5E7E;
  --ink-faint: #8A8CA3;
  --paper: #FAF8F4;
  --paper-border: #EDEBE5;
  --blue: #3B4CB8;
  --font-display: Georgia, serif;
  --font-body: 'Hanken Grotesk', system-ui, sans-serif;
}

/* The cdnfonts.com stylesheet doesn't set font-display, which risks invisible
   headings while the webfont downloads. Render with the fallback serif
   immediately and only switch once the font has actually loaded. */
html.fonts-loaded {
  --font-display: 'TT Ramillas Trl', Georgia, serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: #FFFFFF;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--accent); }

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

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

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@keyframes deFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes deGlow {
  0%, 100% { opacity: .55; }
  50% { opacity: .85; }
}

.page { width: 100%; overflow: hidden; background: #FFFFFF; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }

/* --- Nav --- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--hero-bg);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.site-nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.brand {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: .2px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-link {
  color: rgba(255, 255, 255, .72);
  font-size: 15px;
  font-weight: 500;
}

.nav-link:hover { color: #fff; }

.lang-switch {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
}

.lang-switch a {
  color: rgba(255, 255, 255, .5);
}

.lang-switch a:hover,
.lang-switch a[aria-current="true"] {
  color: #fff;
}

/* --- Buttons --- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  border-radius: var(--btn-radius);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover { color: #fff; filter: brightness(.93); }

.btn-outline-light {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .25);
}

.btn-outline-light:hover { color: #fff; border-color: rgba(255, 255, 255, .6); }

.btn-outline-dark {
  color: var(--ink);
  border: 1px solid #D8D6CE;
}

.btn-outline-dark:hover { color: var(--ink); border-color: var(--ink); }

.btn-sm {
  font-size: 15px;
  padding: 11px 22px;
}

.btn-md {
  font-size: 16px;
  padding: 15px 30px;
}

.btn-md-outline {
  font-size: 16px;
  padding: 15px 26px;
}

.btn-lg {
  font-size: 17px;
  padding: 17px 34px;
}

.btn-contact {
  font-size: 16px;
  padding: 16px 34px;
}

.btn-contact-outline {
  font-size: 16px;
  padding: 16px 30px;
}

/* --- Hero --- */

.hero {
  position: relative;
  background: var(--hero-bg);
  color: #fff;
  overflow: hidden;
}

.hero-title { color: #fff; }

.hero-glow-a,
.hero-glow-b {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero-glow-a {
  top: -180px;
  right: -120px;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(59, 76, 184, .55), rgba(59, 76, 184, 0) 70%);
  animation: deGlow 9s ease-in-out infinite;
}

.hero-glow-b {
  bottom: -220px;
  left: -140px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(255, 103, 70, .22), rgba(255, 103, 70, 0) 70%);
}

.hero-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 88px 32px 96px;
  display: flex;
  gap: 64px;
  align-items: center;
  flex-wrap: wrap;
}

.hero-copy {
  flex: 1 1 440px;
  min-width: 320px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .75);
  margin-bottom: 28px;
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.02;
  margin: 0 0 22px;
  letter-spacing: -.5px;
}

.hero-title .accent { color: var(--accent); }

.hero-subtitle {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
  color: rgba(255, 255, 255, .78);
  max-width: 520px;
  margin: 0 0 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-trust {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 40px;
  color: rgba(255, 255, 255, .55);
  font-size: 13px;
  letter-spacing: .03em;
}

.hero-trust .sep { opacity: .4; }

/* --- Faux product card --- */

.hero-visual {
  flex: 1 1 380px;
  min-width: 300px;
  display: flex;
  justify-content: center;
}

.product-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  color: var(--ink);
  border-radius: 16px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .55);
  overflow: hidden;
  animation: deFloat 7s ease-in-out infinite;
}

.product-card-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 16px;
  background: #F3F2EE;
  border-bottom: 1px solid #E7E5DE;
}

.product-card-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.product-card-dot.red { background: #E0554A; }
.product-card-dot.yellow { background: #E8B84B; }
.product-card-dot.green { background: #57B368; }

.product-card-url {
  margin-left: 10px;
  font-size: 12px;
  color: var(--ink-faint);
  font-family: ui-monospace, Menlo, monospace;
}

.product-card-image {
  position: relative;
  height: 196px;
  background-image: repeating-linear-gradient(45deg, #EDEBE5 0 12px, #F5F3EE 12px 24px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 14px;
}

.product-card-image-label {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 11px;
  color: #9A9BB0;
  background: rgba(255, 255, 255, .85);
  padding: 4px 8px;
  border-radius: 6px;
}

.product-card-image-badge {
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  padding: 5px 10px;
  border-radius: 6px;
}

.product-card-body { padding: 20px; }

.product-card-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.product-card-heading h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  margin: 0;
}

.product-card-price {
  font-weight: 700;
  font-size: 18px;
  color: var(--blue);
  white-space: nowrap;
}

.product-card-meta {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 8px 0 16px;
  line-height: 1.5;
}

.product-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  background: #F3F2EE;
  padding: 6px 11px;
  border-radius: 999px;
}

.tag.tag-dark {
  color: #fff;
  background: var(--ink);
}

/* --- Features --- */

.features {
  background: var(--paper);
  padding: 96px 32px;
}

.features-header {
  max-width: 660px;
  margin-bottom: 56px;
}

.eyebrow {
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 16px;
}

.features-title,
.cta-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.08;
  margin: 0 0 16px;
  letter-spacing: -.4px;
}

.features-subtitle {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--paper-border);
  border-radius: 14px;
  padding: 32px;
}

.feature-number {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 18px;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  margin: 0 0 10px;
}

.feature-card p {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
}

/* --- CTA bar --- */

.cta-bar {
  background: var(--hero-bg);
  color: #fff;
  padding: 80px 32px;
}

.cta-bar-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  gap: 48px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.cta-copy {
  flex: 1 1 420px;
  min-width: 300px;
}

.cta-title {
  font-size: clamp(28px, 3.5vw, 40px);
  line-height: 1.1;
  margin: 0 0 14px;
}

.cta-desc {
  font-size: 17px;
  line-height: 1.55;
  color: rgba(255, 255, 255, .75);
  margin: 0;
  max-width: 520px;
}

/* --- Contact --- */

.contact {
  background: #FFFFFF;
  padding: 100px 32px;
}

.contact-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.contact-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4.5vw, 50px);
  line-height: 1.05;
  margin: 0 0 18px;
  letter-spacing: -.5px;
}

.contact-desc {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 auto 36px;
  max-width: 540px;
}

.contact-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Footer --- */

.site-footer {
  background: var(--paper);
  border-top: 1px solid var(--paper-border);
  padding: 44px 32px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
}

.footer-meta {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
  color: var(--ink-faint);
  font-size: 14px;
}

.footer-meta a { color: var(--ink-soft); }

.footer-lang-switch {
  display: flex;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
}

.footer-lang-switch a { color: var(--ink-faint); }
.footer-lang-switch a:hover,
.footer-lang-switch a[aria-current="true"] { color: var(--ink); }
