/* =========================================================
   BlaezTek — Main Stylesheet
   ========================================================= */

/* ── Root Variables ── */
:root {
  --navy: #0C3453;
  --navy-dark: #081f33;
  --navy-light: #1a5080;
  --text: #0C3453;
  --muted: #4b5563;
  --border: #e5e9f0;
  --bg: #ffffff;
  --bg-soft: #f8f9fc;
  --accent: #FD692D;
  --accent-dark: #e85520;
  --accent-light: #fff2ec;
  --accent-border: #fdc4a8;
  --accent-text: #c94800;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

.container { max-width: 1100px; margin: 0 auto; padding: 0 32px; }

/* Skip link (a11y) */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 12px 18px;
  z-index: 9999;
  text-decoration: none;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ── Topbar (shared across all pages) ── */
.topbar {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
}
.topbar .inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.topbar a.logo {
  font-family: 'Lora', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
}
.topbar a.logo img {
  height: 28px;
  width: auto;
  object-fit: contain;
  margin-right: 10px;
}
.topbar a.logo span { color: var(--accent); }
.topbar nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
.topbar nav a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  margin-left: 24px;
  transition: color 0.2s;
  font-weight: 500;
}
.topbar nav a:hover,
.topbar nav a:focus { color: var(--navy); }
.topbar nav a.cta {
  background: var(--navy);
  color: #fff;
  padding: 8px 18px;
  border-radius: 8px;
  transition: background 0.2s;
}
.topbar nav a.cta:hover { background: var(--navy-dark); color: #fff; }

/* ── Hero ── */
.hero {
  padding: 120px 0 100px;
  text-align: center;
  background: linear-gradient(to bottom, var(--bg-soft) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(253,105,45,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(12,52,83,0.05) 0%, transparent 70%);
  pointer-events: none;
}
.hero h1 {
  font-family: 'Lora', serif;
  font-size: clamp(44px, 8vw, 88px);
  font-weight: 700;
  letter-spacing: -3px;
  margin-bottom: 28px;
  line-height: 1.0;
  color: var(--navy);
  position: relative;
  z-index: 1;
}
.hero h1 em { font-style: italic; color: var(--accent); }
.hero p {
  font-size: clamp(17px, 2.4vw, 22px);
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 48px;
  font-weight: 400;
  line-height: 1.75;
  position: relative;
  z-index: 1;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.hero-eyebrow,
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-light);
  border: 1px solid var(--accent-border);
  color: var(--accent-text);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 32px;
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}
.hero-logo {
  width: 120px;
  margin: 0 auto 40px;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(26,47,94,0.1);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.hero-logo img { width: 100%; height: 100%; object-fit: cover; }

/* ── Buttons ── */
.btn-primary {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  padding: 16px 36px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s;
  box-shadow: 0 8px 24px rgba(12,52,83,0.2);
  border: none;
  cursor: pointer;
}
.btn-primary:hover {
  background: var(--navy-dark);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(12,52,83,0.25);
}
.btn-cta {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 16px 36px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  align-self: flex-start;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 8px 20px rgba(253,105,45,0.25);
}
.btn-cta:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

/* ── Mac App Store Badge ── */
.mas-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #000;
  color: #fff;
  padding: 10px 20px;
  border-radius: 10px;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s;
  border: 1px solid #333;
}
.mas-badge:hover { transform: translateY(-2px); opacity: 0.88; }
.mas-badge svg { width: 22px; height: 22px; flex-shrink: 0; }
.mas-badge-text { display: flex; flex-direction: column; line-height: 1.15; }
.mas-badge-text .sub {
  font-size: 10px; font-weight: 400; letter-spacing: 0.3px;
  color: rgba(255,255,255,0.85);
  font-family: -apple-system, 'SF Pro Text', 'Inter', sans-serif;
}
.mas-badge-text .main {
  font-size: 16px; font-weight: 600; letter-spacing: -0.3px;
  font-family: -apple-system, 'SF Pro Display', 'Inter', sans-serif;
}
.mas-badge.large { padding: 14px 28px; border-radius: 14px; gap: 14px; }
.mas-badge.large svg { width: 28px; height: 28px; }
.mas-badge.large .mas-badge-text .sub { font-size: 11px; }
.mas-badge.large .mas-badge-text .main { font-size: 20px; }

/* ── Featured Product (home) ── */
.featured {
  padding: 100px 0;
  border-bottom: 1px solid var(--border);
}
.section-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.product-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 28px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  box-shadow: 0 24px 60px rgba(12,52,83,0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 40px 80px rgba(12,52,83,0.1);
}
.product-img {
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
  position: relative;
  overflow: hidden;
}
.product-img::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 250px; height: 250px;
  background: rgba(253,105,45,0.1);
  border-radius: 50%;
}
.product-img img {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 24px 48px rgba(0,0,0,0.3);
  position: relative;
  z-index: 1;
}
.product-info {
  padding: 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.product-info .tag {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 16px;
}
.product-info h2 {
  font-family: 'Lora', serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -1px;
  color: var(--navy);
  line-height: 1.1;
}
.product-info p {
  font-size: 17px;
  color: var(--muted);
  margin-bottom: 36px;
  line-height: 1.75;
}

/* ── Philosophy Grid ── */
.philosophy {
  padding: 100px 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}
.philosophy-header {
  text-align: center;
  margin-bottom: 64px;
}
.philosophy-header h2 {
  font-family: 'Lora', serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -1px;
  margin-bottom: 12px;
}
.philosophy-header p {
  color: var(--muted);
  font-size: 16px;
  max-width: 480px;
  margin: 0 auto;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.grid-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.grid-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(12,52,83,0.07);
}
.grid-item .icon {
  width: 44px;
  height: 44px;
  background: var(--accent-light);
  border: 1px solid var(--accent-border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 20px;
}
.grid-item h3 {
  font-family: 'Lora', serif;
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--navy);
  letter-spacing: -0.3px;
}
.grid-item p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

/* ── CTA Banner ── */
.cta-banner {
  padding: 100px 0;
  border-bottom: 1px solid var(--border);
}
.cta-inner {
  background: var(--navy);
  border-radius: 28px;
  padding: 80px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-inner::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 300px; height: 300px;
  background: rgba(253,105,45,0.12);
  border-radius: 50%;
}
.cta-inner::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 240px; height: 240px;
  background: rgba(253,105,45,0.07);
  border-radius: 50%;
}
.cta-inner h2 {
  font-family: 'Lora', serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: #fff;
  letter-spacing: -1px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.cta-inner h2 em { font-style: italic; color: var(--accent); }
.cta-inner p {
  color: rgba(255,255,255,0.7);
  font-size: 17px;
  max-width: 500px;
  margin: 0 auto 40px;
  line-height: 1.75;
  position: relative;
  z-index: 1;
}
.cta-inner .btn-cta,
.cta-inner .mas-badge { position: relative; z-index: 1; }

/* ── Feature Sections (BlaezForge) ── */
.section {
  padding: 100px 0;
  border-bottom: 1px solid var(--border);
}
.section.alt { background-color: var(--bg-soft); }
.feature-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}
.text-box {
  text-align: center;
  max-width: 680px;
}
.text-box .label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 14px;
  display: block;
}
.text-box h2 {
  font-family: 'Lora', serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
  color: var(--navy);
  line-height: 1.15;
}
.text-box p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}
.img-container {
  width: 100%;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 32px 80px rgba(26,47,94,0.1);
  overflow: hidden;
  position: relative;
  z-index: 1;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}
.img-container:hover {
  transform: scale(1.5);
  z-index: 10;
  box-shadow: 0 60px 120px rgba(26,47,94,0.2);
}
.img-container img { width: 100%; height: auto; display: block; }

/* ── Privacy Callout ── */
.privacy-callout {
  text-align: center;
  max-width: 660px;
  margin: 0 auto;
  padding: 60px 40px;
  background: var(--navy);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
}
.privacy-callout::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  background: rgba(253,105,45,0.15);
  border-radius: 50%;
}
.privacy-callout::after {
  content: '';
  position: absolute;
  bottom: -40px; left: -40px;
  width: 140px; height: 140px;
  background: rgba(253,105,45,0.1);
  border-radius: 50%;
}
.privacy-callout h2 {
  font-family: 'Lora', serif;
  font-size: 30px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
  position: relative;
  z-index: 1;
}
.privacy-callout p {
  color: rgba(255,255,255,0.75);
  font-size: 16px;
  line-height: 1.75;
  position: relative;
  z-index: 1;
}
.callout-wrapper {
  display: flex;
  justify-content: center;
}

/* ── Pricing ── */
.pricing-header {
  text-align: center;
  margin-bottom: 56px;
}
.pricing-header h2 {
  font-family: 'Lora', serif;
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -1px;
  margin-bottom: 12px;
}
.pricing-header p {
  color: var(--muted);
  font-size: 16px;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.card {
  background: #fff;
  padding: 36px;
  border-radius: 20px;
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(26,47,94,0.08);
}
.card.featured {
  border: 2px solid var(--navy);
  background: var(--navy);
  color: #fff;
}
.card .plan-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 8px;
}
.card h3 {
  font-family: 'Lora', serif;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--navy);
}
.card.featured h3 { color: #fff; }
.price {
  font-size: 48px;
  font-weight: 700;
  margin: 20px 0 4px;
  color: var(--navy);
  font-family: 'Lora', serif;
  letter-spacing: -2px;
  line-height: 1;
}
.card.featured .price { color: #fff; }
.price-period {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  margin-bottom: 20px;
}
.card.featured .price-period { color: rgba(255,255,255,0.6); }
.card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  flex-grow: 1;
}
.card.featured p { color: rgba(255,255,255,0.75); }
.card .trial-badge {
  display: inline-block;
  background: var(--accent-light);
  border: 1px solid var(--accent-border);
  color: var(--accent-text);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  margin-top: 16px;
  letter-spacing: 0.3px;
  align-self: flex-start;
}
.card.featured .trial-badge {
  background: rgba(253,105,45,0.2);
  border-color: rgba(253,105,45,0.4);
  color: var(--accent);
}

/* ── Legal Pages (Privacy / Terms) ── */
.page-header {
  max-width: 780px;
  margin: 64px auto 48px;
  padding: 0 32px 0 60px;
  position: relative;
}
.page-header::before {
  content: '';
  position: absolute;
  left: 32px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--navy);
}
.page-header h1 {
  font-family: 'Lora', serif;
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -1px;
  margin-bottom: 8px;
}
.page-header .meta {
  font-size: 13px;
  color: var(--muted);
}
.page-header .meta strong { color: var(--text); font-weight: 500; }

.content {
  max-width: 780px;
  margin: 0 auto 80px;
  padding: 0 32px;
}
.content .intro {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 48px;
  padding: 20px 24px;
  background: var(--bg-soft);
  border-radius: 8px;
  border: 1px solid var(--border);
  line-height: 1.8;
}
.legal-section { margin-bottom: 40px; }
.legal-section h2 {
  font-family: 'Lora', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 12px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.legal-section h2 .num {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-light);
  border: 1px solid var(--accent-border);
  border-radius: 4px;
  padding: 2px 7px;
  letter-spacing: 0.5px;
}
.legal-section p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 10px;
}
.legal-section p:last-child { margin-bottom: 0; }
.legal-section ul {
  list-style: none;
  margin-top: 12px;
  padding: 0;
}
.legal-section ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}
.legal-section ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--navy);
  font-weight: 700;
}
.legal-section ul li strong { color: var(--text); font-weight: 500; }
.legal-section .subsection {
  margin-top: 16px;
  padding: 16px 20px;
  background: var(--bg-soft);
  border-radius: 8px;
  border: 1px solid var(--border);
}
.legal-section .subsection + .subsection { margin-top: 10px; }
.legal-section .subsection h3 {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
}
.legal-section .subsection p {
  font-size: 14px;
  margin: 0;
}
.legal-section a {
  color: var(--navy);
  font-weight: 500;
}
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 36px 0;
}

/* ── 404 Error Page ── */
.error-page {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 280px);
  padding: 80px 32px;
  text-align: center;
}
.error-page .error-code {
  font-family: 'Lora', serif;
  font-size: clamp(96px, 18vw, 180px);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -4px;
}
.error-page h1 {
  font-family: 'Lora', serif;
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 700;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
  line-height: 1.1;
  color: var(--navy);
}
.error-page p {
  font-size: 17px;
  color: var(--muted);
  max-width: 500px;
  margin: 0 auto 32px;
  line-height: 1.75;
}

/* ── Footer ── */
footer {
  padding: 56px 0;
  text-align: center;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--border);
}
footer .footer-logo {
  width: 100px;
  height: auto;
  margin: 0 auto 12px;
  display: block;
}
footer .logo-text {
  font-family: 'Lora', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
}
footer .logo-text span { color: var(--accent); }
footer a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 500;
}
footer a:hover { text-decoration: underline; }
footer .links { margin-top: 12px; }
footer .links a { margin: 0 12px; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .product-card { grid-template-columns: 1fr; }
  .product-img { padding: 48px; }
  .product-info { padding: 48px; }
  .btn-cta { align-self: center; }
  .grid { grid-template-columns: 1fr; }
  .cta-inner { padding: 56px 32px; }
}
@media (max-width: 768px) {
  .hero { padding: 80px 0 70px; }
  .featured, .philosophy, .cta-banner, .section { padding: 64px 0; }
  .privacy-callout { padding: 48px 28px; }
}
@media (max-width: 600px) {
  .topbar { padding: 14px 0; }
  .topbar .inner { gap: 12px; }
  .topbar a.logo { font-size: 18px; }
  .topbar a.logo img { height: 24px; }
  .topbar nav a { margin-left: 14px; font-size: 12px; }
  .topbar nav a.cta { padding: 6px 12px; }
  .hero h1 { letter-spacing: -2px; }
  .page-header { padding: 0 24px 0 40px; }
  .page-header::before { left: 24px; }
  .content { padding: 0 24px; }
  .pricing-grid { grid-template-columns: 1fr; gap: 16px; }
  .card { padding: 24px; }
  footer .links a { margin: 0 8px; }
}
@media (max-width: 480px) {
  .topbar nav a:not(.cta):not(.nav-primary) { display: none; }
  .container { padding: 0 20px; }
}

/* ── Print ── */
@media print {
  .topbar, footer, .cta-banner, .hero-actions { display: none; }
  body { color: #000; }
}

