/* ========================================
   Tiltless — Main Stylesheet
   Dark navy + teal/green accents
   No framework — custom responsive CSS
   ======================================== */

/* ---------- Variables ---------- */
:root {
  --bg-dark: #0f1923;
  --bg-darker: #0a1219;
  --bg-card: #162231;
  --bg-card-hover: #1c2d40;
  --accent: #00b894;
  --accent-hover: #00a381;
  --accent-light: rgba(0, 184, 148, 0.15);
  --text-primary: #f5f5f5;
  --text-secondary: #a0aec0;
  --text-muted: #718096;
  --border: #2d3748;
  --tier-foundation: #00b894;
  --tier-core: #0984e3;
  --tier-advanced: #fdcb6e;
  --max-width: 960px;
}

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

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

h1, h2, h3, h4 { color: var(--text-primary); line-height: 1.2; }
p { color: var(--text-secondary); }

img { max-width: 100%; height: auto; }
ul { list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-teal { color: var(--accent); }

/* ---------- Navbar ---------- */
.tiltless-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(15, 25, 35, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
}

.tiltless-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-primary);
  text-decoration: none;
}

.nav-brand .brand-icon {
  color: var(--accent);
  margin-right: 0.25rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-decoration: none;
}

.nav-links a:hover { color: var(--text-primary); }

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  transition: background 0.2s;
}

.nav-cta:hover { background: var(--accent-hover); color: #fff; }

.nav-burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  margin: 5px 0;
  transition: 0.2s;
}

/* ---------- Buttons ---------- */
.button {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
  text-decoration: none;
  text-align: center;
}

.cta-btn {
  background: var(--accent);
  color: #fff !important;
  border-color: var(--accent);
}

.cta-btn:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-1px);
}

.cta-secondary {
  background: transparent;
  color: var(--accent) !important;
  border-color: var(--accent);
}

.cta-secondary:hover {
  background: var(--accent-light);
}

/* ---------- Inputs ---------- */
.signup-form input[type="email"] {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-size: 1rem;
  width: 100%;
  max-width: 320px;
  outline: none;
}

.signup-form input[type="email"]::placeholder {
  color: var(--text-muted);
}

.signup-form input[type="email"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-light);
}

.signup-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.signup-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
}

.signup-form .button {
  white-space: nowrap;
}

.signup-fine-print {
  width: 100%;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.signup-thanks {
  font-size: 1.1rem;
  color: var(--accent);
  padding: 0.75rem 0;
}

/* ---------- Hero ---------- */
.hero-section {
  padding: 8rem 0 5rem;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-dark) 0%, #0a1628 100%);
}

.hero-suits {
  font-size: 2rem;
  letter-spacing: 1rem;
  color: var(--text-muted);
  opacity: 0.4;
  margin-bottom: 1.5rem;
}

.hero-headline {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.hero-headline span {
  color: var(--accent);
}

.hero-subhead {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 550px;
  margin: 0 auto 2.5rem;
}

.hero-cta-wrap {
  margin-bottom: 2rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.hero-badge {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-badge i { color: var(--accent); font-size: 0.75rem; }

/* ---------- Sections (shared) ---------- */
section {
  padding: 5rem 0;
}

.section-label {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.section-heading {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-subhead {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ---------- Skills Section ---------- */
.skills-section {
  background: var(--bg-darker);
}

.skills-intro { margin-bottom: 3rem; }

.tier-block {
  margin-bottom: 2.5rem;
}

.tier-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.tier-badge {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tier-badge.free { background: var(--tier-foundation); color: #fff; }
.tier-badge.core { background: var(--tier-core); color: #fff; }
.tier-badge.advanced { background: var(--tier-advanced); color: #1a1a2e; }

.tier-name {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.tier-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-left: auto;
}

.skills-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.skill-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.2s;
}

.skill-item:hover { border-color: var(--accent); }

.skill-number {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.skill-number.locked {
  background: rgba(45, 55, 72, 0.5);
  color: var(--text-muted);
}

.skill-content { flex: 1; min-width: 0; }

.skill-name {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}

.skill-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.skill-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  opacity: 0.6;
}

/* ---------- Features Section ---------- */
.features-section {
  background: var(--bg-dark);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.feature-card {
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.2s;
}

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

.feature-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.feature-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.feature-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---------- Pricing Section ---------- */
.pricing-section {
  background: var(--bg-darker);
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 700px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  text-align: center;
}

.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 30px var(--accent-light);
  position: relative;
}

.pricing-tier-name {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.pricing-price {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.pricing-price sup {
  font-size: 1.5rem;
  vertical-align: super;
  font-weight: 600;
}

.pricing-period {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  margin-bottom: 1.5rem;
}

.pricing-features {
  text-align: left;
  margin-bottom: 1.5rem;
}

.pricing-features li {
  padding: 0.4rem 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pricing-features li.included { color: var(--text-secondary); }
.pricing-features li.included i { color: var(--accent); }

.pricing-cta {
  width: 100%;
  margin-top: auto;
}

.pricing-compare {
  max-width: 700px;
  margin: 2.5rem auto 0;
  text-align: center;
}

.pricing-compare h4 {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.compare-table td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

.compare-table tr:first-child td {
  color: var(--accent);
  font-weight: 600;
}

.tiltless-col {
  color: var(--accent) !important;
  font-weight: 700;
}

/* ---------- FAQ Section ---------- */
.faq-section {
  background: var(--bg-dark);
}

.faq-list {
  max-width: 700px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.faq-question {
  padding: 1.15rem 1.5rem;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}

.faq-question:hover { background: var(--bg-card-hover); }

.faq-question::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--accent);
  flex-shrink: 0;
  margin-left: 1rem;
  transition: transform 0.2s;
}

.faq-item.open .faq-question::after {
  content: '−';
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 1.5rem;
}

.faq-item.open .faq-answer {
  max-height: 600px;
  padding: 0 1.5rem 1.25rem;
}

.faq-answer {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---------- Footer ---------- */
.tiltless-footer {
  background: #080e17;
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

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

.footer-heading {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.footer-links li { margin-bottom: 0.4rem; }

.footer-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-links a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ---------- Content pages (blog, about, legal) ---------- */
.page-content {
  padding: 6rem 0 4rem;
}

.page-content h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.page-content h2 {
  font-size: 1.5rem;
  margin: 2rem 0 0.75rem;
}

.page-content h3 {
  font-size: 1.2rem;
  margin: 1.5rem 0 0.5rem;
}

.page-content p {
  margin-bottom: 1rem;
}

.page-content ul, .page-content ol {
  margin: 1rem 0 1rem 1.5rem;
  list-style: disc;
}

.page-content li {
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

.page-content th, .page-content td {
  padding: 0.6rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.page-content th { color: var(--text-primary); font-weight: 600; }

.page-content a { color: var(--accent); }

.page-content strong { color: var(--text-primary); }

.page-content em { color: var(--text-secondary); }

.page-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

/* ---------- Blog post layout ---------- */
.post-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.post-cta {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  margin-top: 3rem;
  text-align: center;
}

.post-cta h3 { margin-bottom: 0.5rem; }
.post-cta p { margin-bottom: 1rem; }

/* ---------- 404 ---------- */
.four-oh-four {
  text-align: center;
  padding: 8rem 0;
}

.four-oh-four .hero-suits {
  font-size: 3rem;
  opacity: 0.3;
}

/* ---------- Responsive ---------- */
@media screen and (max-width: 768px) {
  .hero-section { padding: 6rem 0 3rem; }
  .hero-headline { font-size: 2.25rem; }
  .hero-subhead { font-size: 1.05rem; }
  .hero-suits { font-size: 1.5rem; letter-spacing: 0.5rem; }

  section { padding: 3.5rem 0; }
  .section-heading { font-size: 1.75rem; }

  .features-grid { grid-template-columns: 1fr; }
  .pricing-cards { grid-template-columns: 1fr; }

  .tier-header { flex-direction: column; align-items: flex-start; gap: 0.25rem; }
  .tier-note { margin-left: 0; }

  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }

  .nav-links { display: none; }
  .nav-burger { display: block; }

  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-dark);
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    gap: 0.75rem;
  }

  .signup-fields {
    flex-direction: column;
    align-items: stretch;
  }

  .signup-form input[type="email"] {
    max-width: 100%;
  }

  .compare-table { font-size: 0.8rem; }
}

@media screen and (max-width: 480px) {
  .hero-headline { font-size: 1.8rem; }
  .hero-badges { flex-direction: column; align-items: center; }
}
