/* ==========================================================================
   TorIPTV — TinkerTap LTD Design System
   Matches tinkertap.co.uk tokens, typography, glass cards & neon accents
   ========================================================================== */

/* Self-hosted fonts (SIL OFL 1.1, see /fonts/LICENSE.txt) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('/fonts/space-grotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fira Code';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('/fonts/fira-code-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --color-bg-dark: #08090c;
  --color-bg-deep: #030406;
  --color-card-bg: rgba(17, 20, 28, 0.65);
  --color-card-bg-solid: #11141c;
  --color-card-border: rgba(255, 255, 255, 0.06);
  --color-card-border-hover: rgba(6, 182, 212, 0.35);

  --color-text-main: #f3f4f6;
  --color-text-muted: #9ca3af;
  --color-text-dim: #6b7280;

  --color-cyan: #06b6d4;
  --color-purple: #a855f7;
  --color-pink: #ec4899;
  --color-amber: #f59e0b;
  --color-success: #10b981;

  --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Fira Code', ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --glass-blur: 16px;
  --shadow-neon-cyan: 0 0 25px rgba(6, 182, 212, 0.25);
  --shadow-neon-purple: 0 0 25px rgba(168, 85, 247, 0.25);
  --transition-smooth: all 0.28s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: radial-gradient(circle at 50% 0%, #0f1420 0%, var(--color-bg-dark) 55%);
  background-color: var(--color-bg-dark);
  color: var(--color-text-main);
  font-family: var(--font-body);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-cyan);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  text-decoration: underline;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
}

p {
  color: var(--color-text-muted);
}

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

/* Text accents matching tinkertap.co.uk */
.text-gradient {
  background: linear-gradient(135deg, var(--color-cyan) 0%, var(--color-purple) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-alt {
  background: linear-gradient(135deg, var(--color-purple) 0%, var(--color-pink) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.highlight {
  color: var(--color-cyan);
  text-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
}

/* Navbar (matching TinkerTap header) */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 9, 12, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-card-border);
}

.nav-container {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.logo:hover {
  text-decoration: none;
}

.logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 18px rgba(6, 182, 212, 0.25);
}

.logo-icon img {
  display: block;
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.logo-sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--color-text-dim);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: -2px;
}

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

.nav-link {
  color: var(--color-text-muted);
  font-size: 0.94rem;
  font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  text-decoration: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Buttons (matching TinkerTap) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 10px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
  cursor: pointer;
  border: 1px solid transparent;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--color-cyan) 0%, var(--color-purple) 100%);
  color: #ffffff;
  box-shadow: var(--shadow-neon-cyan);
}

.btn-primary:hover {
  box-shadow: 0 0 32px rgba(6, 182, 212, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text-main);
  border-color: rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
  border-color: var(--color-cyan);
  background: rgba(6, 182, 212, 0.08);
}

.nav-btn-sm {
  padding: 8px 15px;
  font-size: 0.88rem;
}

/* Main */
main {
  flex: 1;
  padding: 64px 0 76px;
}

/* Status Pill Badge (matching TinkerTap .wip-badge) */
.wip-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.28);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--color-cyan);
  text-transform: uppercase;
  margin-bottom: 22px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-cyan);
  box-shadow: 0 0 10px var(--color-cyan);
}

.hero {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 44px;
}

.hero-app-mark {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  margin: 0 auto 20px;
  display: block;
  border: 1px solid rgba(6, 182, 212, 0.35);
  box-shadow: var(--shadow-neon-cyan);
}

.hero-title {
  font-size: clamp(2.1rem, 4.8vw, 3.25rem);
  line-height: 1.12;
  margin-bottom: 18px;
}

.hero-subtitle {
  color: var(--color-text-muted);
  font-size: 1.08rem;
  max-width: 660px;
  margin: 0 auto 28px;
}

.btn-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Notice banner */
.notice {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.32);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin: 0 auto 48px;
  max-width: 860px;
  color: #fde68a;
  font-size: 0.94rem;
}

.notice strong {
  color: #fffbeb;
}

/* Sections & Glass Cards */
.section {
  margin-bottom: 56px;
}

.section-header {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 30px;
}

.section-header h2 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

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

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

.glass-card {
  background: var(--color-card-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-md);
  padding: 26px;
  transition: var(--transition-smooth);
}

.glass-card:hover {
  border-color: var(--color-card-border-hover);
}

.glass-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.glass-card p {
  font-size: 0.95rem;
}

.card-highlight {
  border-color: rgba(6, 182, 212, 0.45);
  background: linear-gradient(180deg, rgba(6, 182, 212, 0.08), var(--color-card-bg) 55%);
  box-shadow: var(--shadow-neon-cyan);
}

.tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 11px;
  border-radius: 999px;
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: var(--color-purple);
  margin-bottom: 12px;
}

.tag-cyan {
  border-color: rgba(6, 182, 212, 0.45);
  color: var(--color-cyan);
  background: rgba(6, 182, 212, 0.1);
}

.price-figure {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin: 8px 0 4px;
}

.price-sub {
  color: var(--color-text-muted);
  font-size: 0.88rem;
  margin-bottom: 18px;
}

.feature-list {
  list-style: none;
  margin: 18px 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-list li {
  color: var(--color-text-main);
  font-size: 0.94rem;
  padding-left: 24px;
  position: relative;
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-success);
  font-weight: 800;
}

.step-num {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(168, 85, 247, 0.16);
  border: 1px solid rgba(168, 85, 247, 0.45);
  color: #e9d5ff;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

/* Legal Prose */
.prose {
  max-width: 820px;
  margin: 0 auto;
  background: var(--color-card-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-md);
  padding: 40px;
}

.prose h1 {
  font-size: 2.15rem;
  margin-bottom: 6px;
}

.prose .updated {
  font-family: var(--font-mono);
  color: var(--color-text-dim);
  font-size: 0.84rem;
  margin-bottom: 28px;
}

.prose h2 {
  font-size: 1.25rem;
  margin-top: 28px;
  margin-bottom: 10px;
  color: #ffffff;
}

.prose p,
.prose li {
  color: var(--color-text-muted);
  font-size: 0.97rem;
  margin-bottom: 12px;
}

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

.prose ul,
.prose ol {
  padding-left: 22px;
  margin-bottom: 14px;
}

.prose .callout {
  background: rgba(6, 182, 212, 0.08);
  border-left: 3px solid var(--color-cyan);
  padding: 15px 18px;
  border-radius: var(--radius-sm);
  margin: 18px 0;
  color: var(--color-text-main);
}

/* Footer (matching TinkerTap ecosystem) */
.site-footer {
  border-top: 1px solid var(--color-card-border);
  background: var(--color-bg-deep);
  padding: 36px 0 42px;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  max-width: 500px;
}

.footer-brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-company {
  color: var(--color-text-muted);
  font-size: 0.88rem;
}

.footer-company strong {
  color: var(--color-text-main);
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

.footer-links a {
  color: var(--color-text-muted);
}

.footer-links a:hover {
  color: var(--color-cyan);
  text-decoration: none;
}

@media (max-width: 680px) {
  .nav-container {
    padding: 12px 20px;
  }

  .prose {
    padding: 26px 20px;
  }

  main {
    padding: 44px 0 60px;
  }
}
