/* ── Ubii Website — Shared Styles ─────────────────── */
:root {
  --primary: #0a0a0a;
  --primary-light: #1a1a1a;
  --secondary: #ff3b30;
  --secondary-light: #ff5449;
  --secondary-dark: #e6352b;
  --bg: #fafafa;
  --surface: #f2f2f2;
  --card: #ffffff;
  --text: #111111;
  --text-secondary: #6b6b6b;
  --text-muted: #999999;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 16px 56px rgba(0,0,0,0.12);
  --shadow-soft: 0 8px 32px rgba(0,0,0,0.07);
  --shadow-card: 0 2px 16px rgba(0,0,0,0.06);
  --max-width: 1180px;
  --font: "SF Pro Text","Inter","Segoe UI",-apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif;
}

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

/* ── NAV ─────────────────────────────────────────── */
header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(180%) blur(16px);
  background: rgba(255,255,255,0.88);
  border-bottom: 1px solid rgba(0,0,0,0.04);
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.nav {
  max-width: var(--max-width); margin: 0 auto;
  padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
}

.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }

.logo-mark {
  width: 38px; height: 38px; border-radius: 12px;
  background: linear-gradient(145deg, var(--primary), var(--primary-light));
  display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

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

.nav-links a {
  padding: 8px 14px; border-radius: 10px; font-weight: 500; font-size: 14px;
  color: var(--text-secondary); transition: all 0.2s ease;
}
.nav-links a:hover { color: var(--text); background: rgba(0,0,0,0.04); }

/* ── BUTTONS ─────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: var(--radius); font-weight: 600;
  border: none; cursor: pointer; font-size: 15px; font-family: var(--font);
  transition: transform 0.2s, box-shadow 0.25s, background 0.2s; text-decoration: none;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--primary); color: #fff;
  box-shadow: 0 8px 28px rgba(0,0,0,0.22);
}
.btn-primary:hover { background: var(--primary-light); }

.btn-secondary {
  background: var(--secondary); color: #fff;
  box-shadow: 0 8px 28px rgba(255,59,48,0.25);
}
.btn-secondary:hover { background: var(--secondary-dark); }

.btn-outline {
  background: #fff; color: var(--text); border: 1.5px solid rgba(0,0,0,0.1);
  box-shadow: var(--shadow-card);
}
.btn-outline:hover { border-color: rgba(0,0,0,0.18); }

.btn-lg { padding: 16px 32px; font-size: 16px; border-radius: 16px; }

/* ── LAYOUT ──────────────────────────────────────── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
section { padding: 100px 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(0,0,0,0.04); color: var(--text-secondary);
  font-weight: 600; font-size: 13px; letter-spacing: 0.02em; text-transform: uppercase;
  margin-bottom: 16px;
}
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--secondary); box-shadow: 0 0 0 6px rgba(255,59,48,0.12); }

h1 { font-size: clamp(36px,5.4vw,62px); line-height: 1.06; letter-spacing: -0.03em; font-weight: 700; }
h2 { font-size: clamp(28px,4vw,42px); line-height: 1.12; letter-spacing: -0.025em; font-weight: 700; }
h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
p.lead { color: var(--text-secondary); font-size: 18px; line-height: 1.7; max-width: 560px; }

/* ── PAGE HERO ───────────────────────────────────── */
.page-hero {
  padding: 80px 0 60px;
  background: linear-gradient(155deg, #0d0d0d, #1a1a1a);
  color: #fff; position: relative; overflow: hidden;
}

.page-hero::before {
  content: ""; position: absolute; top: -80px; right: -60px;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,59,48,0.18), transparent 60%);
  pointer-events: none;
}

.page-hero .eyebrow {
  background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.08);
}

.page-hero p.lead { color: rgba(255,255,255,0.65); }
.page-hero h1 { font-size: clamp(32px,4.5vw,48px); }

/* ── CONTENT SECTIONS ────────────────────────────── */
.content-section { padding: 72px 0; }
.content-section.alt { background: var(--surface); }

.prose {
  max-width: 780px; margin: 0 auto;
}

.prose h2 {
  font-size: 26px; margin: 48px 0 16px; padding-top: 32px;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.prose h2:first-child { border-top: none; padding-top: 0; margin-top: 0; }

.prose h3 { font-size: 19px; margin: 32px 0 12px; }

.prose p {
  color: var(--text-secondary); font-size: 16px; line-height: 1.8;
  margin-bottom: 16px;
}

.prose ul, .prose ol {
  color: var(--text-secondary); font-size: 16px; line-height: 1.8;
  padding-left: 24px; margin-bottom: 16px;
}

.prose li { margin-bottom: 8px; }

.prose a { color: var(--secondary); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--secondary-dark); }

.prose strong { color: var(--text); }

/* ── CARDS GRID ──────────────────────────────────── */
.card-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.card {
  background: var(--card); border-radius: 18px; padding: 28px;
  border: 1px solid rgba(0,0,0,0.04); box-shadow: var(--shadow-card);
  transition: transform 0.25s, box-shadow 0.25s;
}

.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }

.card-icon {
  width: 48px; height: 48px; border-radius: 14px;
  background: linear-gradient(145deg, var(--primary), #222);
  display: grid; place-items: center; margin-bottom: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
  border: 1px solid rgba(255,255,255,0.06);
}

.card h3 { margin-bottom: 8px; font-size: 18px; }
.card p { color: var(--text-secondary); font-size: 15px; }

/* ── CONTACT FORM ────────────────────────────────── */
.form-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }

.form-group label {
  font-size: 14px; font-weight: 600; color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 14px 16px; border-radius: 12px; border: 1.5px solid rgba(0,0,0,0.08);
  font-size: 15px; font-family: var(--font); background: #fff;
  transition: border-color 0.2s; outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--secondary);
}

.form-group textarea { resize: vertical; min-height: 140px; }

/* ── BLOG CARDS ──────────────────────────────────── */
.blog-card {
  background: var(--card); border-radius: 18px; overflow: hidden;
  border: 1px solid rgba(0,0,0,0.04); box-shadow: var(--shadow-card);
  transition: transform 0.25s, box-shadow 0.25s;
}

.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }

.blog-thumb {
  height: 200px; background: linear-gradient(135deg, var(--primary), #222);
  position: relative; overflow: hidden;
  display: flex; align-items: flex-end; padding: 20px;
}

.blog-thumb .blog-tag {
  background: var(--secondary); color: #fff;
  padding: 5px 12px; border-radius: 8px; font-size: 12px; font-weight: 600;
  position: absolute; top: 16px; left: 16px;
}

.blog-body { padding: 24px; }
.blog-body h3 { margin-bottom: 8px; font-size: 18px; }
.blog-body p { color: var(--text-secondary); font-size: 14px; line-height: 1.6; margin-bottom: 14px; }

.blog-meta { font-size: 13px; color: var(--text-muted); display: flex; gap: 16px; }

/* ── FAQ ─────────────────────────────────────────── */
.faq-item {
  border-bottom: 1px solid rgba(0,0,0,0.06); padding: 20px 0;
}

.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; font-weight: 600; font-size: 16px;
  gap: 16px;
}

.faq-q::after {
  content: "+"; font-size: 22px; color: var(--text-muted);
  transition: transform 0.25s;
}

.faq-item.open .faq-q::after { transform: rotate(45deg); }

.faq-a {
  max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.35s ease;
  color: var(--text-secondary); font-size: 15px; line-height: 1.7;
}

.faq-item.open .faq-a { max-height: 300px; padding-top: 14px; }

/* ── FOOTER ──────────────────────────────────────── */
footer {
  background: var(--primary); color: #fff; padding: 64px 0 32px;
}

.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 32px;
}

.footer-brand p { color: rgba(255,255,255,0.5); font-size: 14px; max-width: 280px; margin-top: 12px; line-height: 1.7; }

.footer-col h4 {
  font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em;
  color: rgba(255,255,255,0.4); margin-bottom: 16px; font-weight: 600;
}

.footer-col a {
  display: block; padding: 4px 0; font-size: 14px;
  color: rgba(255,255,255,0.7); transition: color 0.2s;
}
.footer-col a:hover { color: #fff; }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}

.footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.35); }

.social { display: flex; gap: 10px; }

.social a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08);
  display: grid; place-items: center;
  transition: background 0.2s, transform 0.2s;
}
.social a:hover { background: rgba(255,255,255,0.12); transform: translateY(-2px); }

/* ── ANIMATIONS ──────────────────────────────────── */
[data-a] { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
[data-a].vis { opacity: 1; transform: translateY(0); }
[data-a="d1"] { transition-delay: 0.1s; }
[data-a="d2"] { transition-delay: 0.2s; }
[data-a="d3"] { transition-delay: 0.3s; }

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 960px) {
  .nav-links { display: none; }
  section { padding: 72px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
}
