/* ==========================================================================
   Ultrafer — Hardware for Luxury Furniture
   CSS puro, mobile-first, sem frameworks.
   ========================================================================== */

:root {
  --black: #0b0b0c;
  --black-soft: #151517;
  --graphite: #1d1d20;
  --gold: #c9a15a;
  --gold-light: #e3caa0;
  --cream: #f4f1eb;
  --muted: #a5a29b;
  --white: #ffffff;

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --transition: 240ms var(--ease-premium);
  --ease-premium: cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-soft: 0 20px 50px -20px rgba(0,0,0,0.55);
  --shadow-card: 0 16px 40px -22px rgba(0,0,0,0.6);

  --font: "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--cream);
  background: var(--black);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2 { letter-spacing: -0.02em; color: var(--white); line-height: 1.15; margin: 0 0 0.4em; }
h1 { font-family: var(--font); font-weight: 600; font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 { font-family: var(--font); font-weight: 600; font-size: 1.15rem; color: var(--white); margin: 0 0 0.5em; letter-spacing: -0.01em; }
p { margin: 0 0 1em; color: var(--muted); }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 760px; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--white); color: #000; padding: 10px 16px; z-index: 999;
}
.skip-link:focus { left: 10px; top: 10px; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px 34px; border-radius: var(--radius-pill); font-weight: 600; font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 0.1em;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform var(--transition), background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}
.btn::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform 650ms var(--ease-premium);
  pointer-events: none;
}
.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(-1px); }

.btn-primary { background: var(--gold); color: #17140d; }
.btn-primary:hover { background: var(--gold-light); }

.btn-ghost { background: rgba(255,255,255,0.03); color: var(--white); border-color: rgba(255,255,255,0.3); }
.btn-ghost:hover { background: rgba(255,255,255,0.09); border-color: rgba(255,255,255,0.55); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  pointer-events: none;
}
.site-header::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 130px;
  background: linear-gradient(180deg, rgba(11,11,12,0.85) 0%, rgba(11,11,12,0.4) 55%, rgba(11,11,12,0) 100%);
  pointer-events: none;
}
.site-header .header-inner { position: relative; pointer-events: auto; }
.header-inner { display: flex; align-items: center; padding: 14px 0; }
.header-logo { height: 26px; width: auto; filter: brightness(0) invert(1); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; overflow: hidden; color: #fff; }
.hero-img { position: absolute; inset: -6% 0 0 0; width: 100%; height: 112%; object-fit: cover; will-change: transform; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,11,12,0.55) 0%, rgba(11,11,12,0.55) 40%, rgba(11,11,12,0.95) 100%);
}
.hero-content { position: relative; z-index: 2; padding: 100px 24px 70px; }
.hero-logo-mark { height: 46px; width: auto; filter: brightness(0) invert(1); margin-bottom: 26px; }
.hero-logo-syntonia { height: auto; width: 230px; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.15em; font-size: 0.78rem; font-weight: 600;
  color: var(--gold-light); margin-bottom: 16px;
}
.hero h1 { color: #fff; max-width: 16ch; }
.hero-subtitle { max-width: 48ch; font-size: 1.1rem; color: #dcd8cf; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin: 30px 0 8px; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--black-soft); }
.section-lead { color: var(--muted); font-size: 1.05rem; max-width: 62ch; margin-bottom: 2.2em; }
.section-cta { display: flex; justify-content: center; margin-top: 48px; }

/* ---------- Intro ---------- */
.intro-text { max-width: 780px; margin: 0 auto; text-align: center; }
.intro-text p { font-size: 1.08rem; color: #d3cfc5; }

/* ---------- Product sections ---------- */
.product-block { display: flex; align-items: center; gap: 64px; }
.product-block-reverse { flex-direction: row-reverse; }
.product-text { flex: 1; min-width: 0; }
.product-figure { flex: 1; min-width: 0; margin: 0; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); }
.product-figure img { width: 100%; height: auto; display: block; transition: transform 700ms var(--ease-premium); }
.product-figure:hover img { transform: scale(1.03); }
.product-tag { display: inline-block; font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); border: 1px solid rgba(201,161,90,0.4); border-radius: var(--radius-pill); padding: 5px 14px; margin-bottom: 16px; }
.product-features { display: flex; flex-direction: column; gap: 12px; margin: 22px 0 26px; }
.product-features li { padding-left: 22px; position: relative; color: #d3cfc5; font-size: 0.95rem; }
.product-features li::before { content: "—"; position: absolute; left: 0; color: var(--gold); }

/* ---------- Models strip (Syntonia Box A-F) ---------- */
.models-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 32px; }
.model-chip { text-align: center; padding: 14px 6px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-sm); }
.model-chip .letter { display: block; font-size: 1.1rem; font-weight: 700; color: var(--gold); margin-bottom: 4px; }
.model-chip .size { font-size: 0.72rem; color: var(--muted); }

/* ---------- Ecosystem / feature cards ---------- */
.ecosystem-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 48px; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.gallery-item { align-self: stretch; }
.gallery-item img { width: 100%; height: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.ecosystem-card {
  text-align: center; padding: 34px 22px; border-radius: var(--radius-md);
  background: rgba(255,255,255,0.035); border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.ecosystem-card:hover { transform: translateY(-4px); border-color: rgba(201,161,90,0.4); }
.ecosystem-card h3 { font-size: 1rem; margin-bottom: 8px; }
.ecosystem-card p { font-size: 0.88rem; margin: 0; }

/* Compatible lines strip */
.lines-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 28px; margin-top: 44px; }
.lines-strip span { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* ---------- Stats / animated counters ---------- */
.stats-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 48px; }
.stat-card {
  text-align: center; padding: 30px 18px; border-radius: var(--radius-md);
  background: rgba(255,255,255,0.035); border: 1px solid rgba(255,255,255,0.08);
}
.stat-number { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 600; color: var(--gold); margin: 0; }
.stat-label { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 8px 0 0; }

/* ---------- Contact / Cadastro ---------- */
.contact-form {
  max-width: 560px; margin: 0 auto; text-align: left; padding: 40px 36px;
  background: rgba(255,255,255,0.035); border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md); box-shadow: var(--shadow-card);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-row { margin-bottom: 18px; }
.form-row-full { grid-column: 1 / -1; }
.form-row label { display: block; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 13px 16px; border: 1px solid rgba(255,255,255,0.2); border-radius: var(--radius-sm);
  font-size: 0.95rem; font-family: inherit; background: rgba(255,255,255,0.03); color: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-row textarea { resize: vertical; min-height: 90px; }
.form-row input::placeholder, .form-row textarea::placeholder { color: #6b675f; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,161,90,0.15); }
.form-row select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a5a29b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; }
.contact-form .btn { width: 100%; margin-top: 4px; }
.contact-note { text-align: center; font-size: 0.82rem; color: var(--muted); margin-top: 18px; }

/* ---------- Footer ---------- */
.site-footer { background: #060607; padding: 56px 0 0; border-top: 1px solid rgba(255,255,255,0.08); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; padding-bottom: 32px; }
.footer-brand-logo { height: 30px; width: auto; filter: brightness(0) invert(1); margin-bottom: 12px; }
.footer-col p { font-size: 0.88rem; margin: 0 0 6px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 0.85rem; color: var(--muted); }
.footer-links a:hover { color: var(--white); }
.footer-bottom { padding: 20px 24px max(20px, env(safe-area-inset-bottom)); text-align: center; font-size: 0.78rem; color: #55524c; border-top: 1px solid rgba(255,255,255,0.06); }

/* ---------- Sticky mobile CTA bar ---------- */
.mobile-cta-bar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  padding: 12px 16px max(12px, env(safe-area-inset-bottom));
  background: rgba(11,11,12,0.92); backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,0.1);
}
.mobile-cta-bar .btn { width: 100%; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 550ms var(--ease-premium), transform 550ms var(--ease-premium); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-img { transform: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .product-block, .product-block-reverse { flex-direction: column; gap: 32px; }
  .ecosystem-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-strip { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .models-strip { grid-template-columns: repeat(3, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero { min-height: 100vh; }
  .hero-content { padding: 90px 20px 60px; }
  .section { padding: 56px 0; }
  .models-strip { grid-template-columns: repeat(3, 1fr); }
  .contact-form { padding: 28px 22px; }
  .mobile-cta-bar { display: block; }
  body { padding-bottom: 74px; }
}
