/* ============================================================
   Tubo Tech — corporate website stylesheet
   ============================================================ */

:root {
  --bg: #0d1017;
  --bg-soft: #131823;
  --panel: #181f2d;
  --border: rgba(255, 255, 255, 0.09);
  --text: #e8ebf1;
  --text-dim: #98a1b2;
  --orange: #e8590c;
  --orange-deep: #c2410c;
  --orange-soft: rgba(232, 89, 12, 0.13);
  --radius: 14px;
  --font-head: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.2;
  margin: 0 0 12px;
  font-weight: 600;
}

p { margin: 0 0 16px; }

a { color: var(--orange); text-decoration: none; }
a:hover { color: var(--orange-deep); text-decoration: underline; }

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

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}

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

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  text-decoration: none;
}

.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
  background: var(--orange);
  color: #fff;
}
.btn-primary:hover { background: var(--orange-deep); color: #fff; }

.btn-ghost {
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); }

.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 16, 23, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.2px;
  text-decoration: none;
}
.brand:hover { color: var(--text); text-decoration: none; }

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-deep) 100%);
  position: relative;
  flex-shrink: 0;
}
.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  background: #fff;
  border-radius: 2px;
}
.brand-mark::before {
  left: 8px; top: 9px;
  width: 18px; height: 4px;
}
.brand-mark::after {
  left: 15px; top: 9px;
  width: 4px; height: 17px;
}

.brand-name span { color: var(--orange); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
}

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

.nav-link {
  color: var(--text-dim);
  font-size: 15px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-link:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); text-decoration: none; }
.nav-link.active { color: var(--orange); }

/* ---------- Hero / page header ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 104px 0 80px;
}
.hero::before {
  content: "";
  position: absolute;
  top: -140px;
  right: -120px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 89, 12, 0.24), transparent 65%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -180px;
  left: -140px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 89, 12, 0.12), transparent 65%);
  pointer-events: none;
}

.hero .container { position: relative; z-index: 1; }

.hero h1 {
  font-size: clamp(34px, 5.4vw, 56px);
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 18px;
  color: var(--text-dim);
  max-width: 640px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.eyebrow, .kicker {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}

/* ---------- Sections ---------- */

.section { padding: 72px 0; }

.section-tint { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head { max-width: 720px; margin-bottom: 40px; }

.section-head h2 { font-size: clamp(26px, 3.4vw, 36px); }

.section-center { text-align: center; }
.section-center .section-head, .section-center p { margin-left: auto; margin-right: auto; }

.lead { font-size: 18px; color: var(--text-dim); max-width: 720px; }

/* ---------- Page header (subpages) ---------- */

.page-header {
  padding: 72px 0 40px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(circle at 85% -20%, rgba(232, 89, 12, 0.16), transparent 55%),
    var(--bg);
}

.page-header h1 { font-size: clamp(32px, 4.6vw, 46px); margin-bottom: 14px; }

/* ---------- Cards / grids ---------- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: rgba(232, 89, 12, 0.45); transform: translateY(-3px); }

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  background: var(--orange-soft);
  border: 1px solid rgba(232, 89, 12, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card-icon svg { width: 22px; height: 22px; stroke: var(--orange); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

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

/* ---------- Stats ---------- */

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 18px;
  margin-top: 40px;
}

.stat {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
}

.stat-num {
  font-family: var(--font-head);
  font-size: 34px;
  font-weight: 700;
  color: var(--orange);
  display: block;
}

.stat-label {
  font-size: 13.5px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ---------- Featured app (index) ---------- */

.featured {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
}
.check-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  color: var(--text-dim);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--orange-soft);
  border: 1px solid rgba(232, 89, 12, 0.5);
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 12px;
  width: 7px;
  height: 3px;
  border-left: 2px solid var(--orange);
  border-bottom: 2px solid var(--orange);
  transform: rotate(-45deg);
}

/* Phone mockup */
.phone {
  width: 280px;
  margin: 0 auto;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 34px;
  padding: 12px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}
.phone-top {
  display: flex;
  justify-content: center;
  padding-bottom: 10px;
}
.phone-notch {
  width: 90px;
  height: 22px;
  border-radius: 12px;
  background: var(--bg);
}
.phone-screen {
  background: var(--bg);
  border-radius: 22px;
  padding: 22px 18px 26px;
  text-align: center;
}
.phone-screen .kicker { margin-bottom: 10px; }
.phone-title {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 4px;
}
.phone-sub { font-size: 12.5px; color: var(--text-dim); margin-bottom: 18px; }
.phone-bar {
  margin: 18px auto 0;
  width: 90px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.18);
}

/* ---------- Platform chips ---------- */

.chip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--text);
  background: var(--orange-soft);
  border: 1px solid rgba(232, 89, 12, 0.35);
  border-radius: 999px;
  white-space: nowrap;
}

/* Platform cards (app page) */

.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.platform-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.platform-card:hover { border-color: rgba(232, 89, 12, 0.45); transform: translateY(-3px); }

.platform-code {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  color: var(--orange);
  display: block;
  margin-bottom: 4px;
}
.platform-name { font-size: 13.5px; color: var(--text-dim); }

/* Store badges */

.store-badges { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 14px; }

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.15s ease;
}
.store-badge:hover { border-color: var(--orange); text-decoration: none; transform: translateY(-1px); }
.store-badge svg { width: 20px; height: 20px; fill: var(--text); }
.store-badge .badge-small { display: block; font-size: 10.5px; font-weight: 500; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.6px; }

.note {
  font-size: 13.5px;
  color: var(--text-dim);
  max-width: 640px;
  margin: 0;
}

/* ---------- Prose (privacy policy) ---------- */

.prose {
  max-width: 780px;
  padding-bottom: 72px;
}

.prose h2 {
  font-size: 22px;
  margin: 40px 0 12px;
  padding-top: 8px;
}
.prose h2::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--orange);
  margin-right: 10px;
  transform: translateY(-1px);
}
.prose p, .prose li { color: var(--text-dim); }
.prose ul { padding-left: 20px; margin: 0 0 16px; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--text); }
.prose address { font-style: normal; color: var(--text-dim); }

.policy-meta {
  font-size: 13.5px;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-left: 3px solid var(--orange);
  background: var(--bg-soft);
  border-radius: 8px;
  padding: 12px 16px;
  margin: 24px 0 32px;
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.contact-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}

.contact-label {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--orange);
  display: block;
  margin-bottom: 10px;
}

.contact-value {
  font-size: 16.5px;
  font-weight: 500;
  color: var(--text);
  word-break: break-word;
}
.contact-value a { color: var(--text); }
.contact-value a:hover { color: var(--orange); text-decoration: none; }
.contact-detail { font-size: 14px; color: var(--text-dim); margin: 10px 0 0; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.4fr;
  gap: 40px;
  padding: 56px 24px 40px;
}

.footer-grid h4 {
  font-size: 15px;
  margin-bottom: 16px;
}

.footer-grid p, .footer-grid li { font-size: 14.5px; color: var(--text-dim); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: var(--text-dim); }
.footer-grid a:hover { color: var(--orange); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 22px 24px;
  font-size: 13.5px;
  color: var(--text-dim);
}
.footer-bottom p { margin: 0; }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .featured { grid-template-columns: 1fr; gap: 44px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
    padding: 10px 24px 18px;
    gap: 4px;
  }
  .nav-menu.open { display: flex; }
  .nav-link { padding: 12px 14px; }
  .hero { padding: 72px 0 56px; }
  .section { padding: 56px 0; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding: 44px 24px 32px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}
