:root {
  --bg: #111111;
  --card: #1e1e1e;
  --card-hover: #252525;
  --gold: #fcd595;
  --gold-dark: #c8901a;
  --gold-muted: #e9b662;
  --text: #ffffff;
  --text-secondary: #94a3b8;
  --divider: #2a2a2a;
  --radius: 16px;
  --radius-sm: 12px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--gold);
  text-decoration: none;
}

a:hover {
  color: var(--gold-muted);
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

/* Brand mark — app icon */
.brand-mark {
  display: block;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 10px;
  border: 1.5px solid rgba(252, 213, 149, 0.55);
  overflow: hidden;
  background: #111;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.2);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-name .gold {
  color: var(--gold);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(17, 17, 17, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--divider);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.header-nav a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.header-nav a:hover {
  color: var(--gold);
}

.lang-select {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--divider);
  border-radius: 8px;
  padding: 0.4rem 0.6rem;
  font-size: 0.85rem;
  cursor: pointer;
}

.lang-select:focus {
  outline: 2px solid var(--gold-dark);
  outline-offset: 2px;
}

/* Phone mockup */
.phone-mockup {
  position: relative;
  border-radius: 28px;
  padding: 10px;
  background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
  border: 2px solid #333;
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(252, 213, 149, 0.06);
}

.phone-mockup::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 5px;
  border-radius: 99px;
  background: #0a0a0a;
  z-index: 2;
}

.phone-mockup img {
  width: 100%;
  border-radius: 20px;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  object-position: top center;
}

/* Hero */
.hero {
  padding: 3rem 0 2rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-copy {
  text-align: left;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 700;
  margin: 0 0 1rem;
  letter-spacing: 0.02em;
}

.hero-title .gold {
  color: var(--gold);
}

/* Connection status card */
.conn-card {
  background: linear-gradient(160deg, #1a1a1a 0%, #141414 100%);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem 1.35rem;
  margin-bottom: 1.75rem;
  max-width: 480px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.conn-card__head {
  margin-bottom: 1rem;
}

.conn-live {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.conn-lamp {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.85);
  animation: lamp-pulse 1.4s ease-in-out infinite;
}

@keyframes lamp-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 10px rgba(52, 211, 153, 0.85);
  }
  50% {
    opacity: 0.35;
    transform: scale(0.92);
    box-shadow: 0 0 4px rgba(52, 211, 153, 0.25);
  }
}

.conn-online {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #34d399;
}

.conn-title {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.conn-panel {
  border: 1px solid var(--divider);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.25);
}

.conn-panel.is-loading .conn-val {
  opacity: 0.45;
}

.conn-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--divider);
  font-family: ui-monospace, "Cascadia Code", "Consolas", monospace;
  font-size: 0.82rem;
}

.conn-row:last-child {
  border-bottom: none;
}

.conn-key {
  color: var(--text-secondary);
  flex-shrink: 0;
}

.conn-key::before {
  content: "> ";
  color: rgba(252, 213, 149, 0.45);
}

.conn-val {
  color: var(--text);
  font-weight: 600;
  text-align: right;
  word-break: break-word;
}

.conn-val--warn {
  color: var(--gold-muted);
}

.hero-tagline {
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  color: var(--text-secondary);
  margin: 0 0 1.75rem;
  max-width: 440px;
}

.badge-soon {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, rgba(252, 213, 149, 0.14), rgba(200, 144, 26, 0.08));
  border: 1px solid rgba(252, 213, 149, 0.35);
  border-radius: 999px;
  padding: 0.65rem 1.25rem;
  font-size: 0.95rem;
  color: var(--gold);
}

.badge-download {
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.badge-download:hover {
  color: var(--gold-muted);
  border-color: rgba(252, 213, 149, 0.55);
  background: linear-gradient(135deg, rgba(252, 213, 149, 0.22), rgba(200, 144, 26, 0.12));
  transform: translateY(-1px);
}

.badge-soon svg {
  flex-shrink: 0;
}

.hero-phones {
  position: relative;
  min-height: 420px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-mockup--back {
  position: absolute;
  width: 200px;
  right: 8%;
  top: 0;
  transform: rotate(6deg);
  opacity: 0.75;
  z-index: 1;
}

.phone-mockup--front {
  position: relative;
  width: 230px;
  z-index: 2;
  transform: rotate(-4deg);
}

/* Features */
.section {
  padding: 3.5rem 0;
}

.section-title {
  text-align: center;
  font-size: 1.75rem;
  margin: 0 0 0.5rem;
}

.section-sub {
  text-align: center;
  color: var(--text-secondary);
  margin: 0 0 2.5rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--divider);
  transition: background 0.2s, border-color 0.2s;
}

.feature-card:hover {
  background: var(--card-hover);
  border-color: rgba(252, 213, 149, 0.2);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(252, 213, 149, 0.1);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.feature-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

/* App showcase */
.app-section {
  background: linear-gradient(180deg, transparent, rgba(30, 30, 30, 0.35), transparent);
}

.app-showcase {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2.5rem;
  align-items: center;
}

.phone-mockup--solo {
  width: 260px;
  margin: 0 auto;
}

.app-showcase-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.app-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.app-points li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--text-secondary);
  font-size: 1rem;
}

.app-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(252, 213, 149, 0.4);
}

/* CTA */
.cta-section {
  padding: 2rem 0 4rem;
}

.cta-box {
  background: linear-gradient(160deg, #1a1a1a 0%, #141414 100%);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
}

.cta-box h2 {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
}

.cta-box p,
.cta-desc {
  color: var(--text-secondary);
  margin: 0 0 1.5rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, rgba(252, 213, 149, 0.18), rgba(200, 144, 26, 0.12));
  border: 1px solid rgba(252, 213, 149, 0.45);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.6rem;
  color: var(--gold);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.btn-download:hover {
  color: var(--gold-muted);
  border-color: rgba(252, 213, 149, 0.65);
  background: linear-gradient(135deg, rgba(252, 213, 149, 0.28), rgba(200, 144, 26, 0.18));
  transform: translateY(-1px);
}

.cta-note {
  margin: 1rem auto 0 !important;
  font-size: 0.82rem !important;
  color: var(--text-secondary) !important;
  opacity: 0.85;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--divider);
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand--footer .brand-name {
  font-size: 1rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--gold);
}

.copyright {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin: 0;
  width: 100%;
  text-align: center;
  padding-top: 0.5rem;
}

/* Legal pages */
.legal-page {
  padding: 2rem 0 4rem;
}

.legal-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--divider);
}

.legal-top a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.legal-top h1 {
  flex: 1;
  text-align: center;
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.legal-content {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--divider);
  padding: 2rem;
  max-width: 760px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 1.1rem;
  margin: 1.5rem 0 0.5rem;
  color: var(--gold-muted);
}

.legal-content h3 {
  font-size: 1rem;
  margin: 1rem 0 0.4rem;
  color: var(--text);
  font-weight: 600;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  color: var(--text-secondary);
  margin: 0 0 1rem;
  font-size: 0.95rem;
}

.legal-content ul {
  color: var(--text-secondary);
  margin: 0 0 1rem 1.25rem;
  padding: 0;
  font-size: 0.95rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
}

.legal-content a {
  color: var(--gold-muted);
}

.legal-meta {
  font-size: 0.9rem;
  line-height: 1.6;
}

.legal-updated {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-copy {
    text-align: center;
  }

  .conn-card {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-tagline {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-phones {
    min-height: 360px;
  }

  .phone-mockup--back {
    right: 18%;
  }

  .app-showcase {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .header-nav a:not(.lang-wrap) {
    display: none;
  }

  .hero-phones {
    min-height: 300px;
  }

  .phone-mockup--back {
    width: 160px;
    right: 5%;
  }

  .phone-mockup--front {
    width: 190px;
  }

  .phone-mockup--solo {
    width: 220px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}
