/* ============================================
   TX Institute of Technology — Stylesheet
   ============================================ */

:root {
  --navy: #0a1f44;
  --navy-dark: #071530;
  --blue: #2e6bff;
  --blue-dark: #1c4fd6;
  --amber: #f5a623;
  --amber-dark: #d98c0f;
  --ink: #1a2233;
  --gray-700: #4a5568;
  --gray-500: #7c8aa0;
  --gray-200: #e6eaf1;
  --gray-100: #f4f6fb;
  --white: #ffffff;
  --radius: 12px;
  --shadow-sm: 0 1px 3px rgba(10, 31, 68, 0.08);
  --shadow-md: 0 8px 24px rgba(10, 31, 68, 0.12);
  --shadow-lg: 0 20px 48px rgba(10, 31, 68, 0.18);
  --max-width: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Poppins', 'Inter', sans-serif;
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 .5em;
}

p { margin: 0 0 1em; color: var(--gray-700); }

a { color: inherit; text-decoration: none; }

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

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

.section {
  padding: 88px 0;
}

.section-alt {
  background: var(--gray-100);
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(46,107,255,.08);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head h2 { font-size: 34px; }
.section-head p { font-size: 17px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); box-shadow: var(--shadow-md); }

.btn-amber { background: var(--amber); color: var(--navy-dark); }
.btn-amber:hover { background: var(--amber-dark); box-shadow: var(--shadow-md); }

.btn-outline { background: transparent; border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--navy); }

.btn-ghost { background: transparent; border-color: var(--gray-200); color: var(--navy); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }

.btn-block { width: 100%; }
.btn-sm { padding: 9px 16px; font-size: 13px; }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--navy);
}
.brand small {
  display: block;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: .06em;
  color: var(--gray-500);
  text-transform: uppercase;
}
.brand-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover { color: var(--blue); }

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: transform .2s ease, opacity .2s ease;
}

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(1200px 600px at 80% -10%, #14306b 0%, var(--navy) 55%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 96px 0 110px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -160px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,166,35,.22), transparent 70%);
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
  position: relative;
}
.hero h1 {
  color: var(--white);
  font-size: 44px;
  margin-bottom: 20px;
}
.hero h1 span { color: var(--amber); }
.hero p.lead {
  color: #c7d2ea;
  font-size: 18px;
  max-width: 520px;
}
.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.hero-stats div strong {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 26px;
  color: var(--white);
}
.hero-stats div span {
  font-size: 13px;
  color: #9fb0d1;
}

.search-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 8px;
  display: flex;
  gap: 8px;
  box-shadow: var(--shadow-lg);
  margin-top: 32px;
  max-width: 520px;
}
.search-card input {
  flex: 1;
  border: none;
  outline: none;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
}
.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.hero-visual {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 20px;
  padding: 22px;
  backdrop-filter: blur(6px);
}
.hero-visual .video-frame {
  aspect-ratio: 16/10;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(46,107,255,.35), rgba(245,166,35,.25)),
    linear-gradient(160deg, #12295c, #0a1f44);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.play-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,.95);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}
.hero-visual-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  color: #c7d2ea;
  font-size: 13px;
}

/* ---------- Logo strip ---------- */
.logo-strip {
  padding: 36px 0;
  border-bottom: 1px solid var(--gray-200);
}
.logo-strip p {
  text-align: center;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 20px;
}
.logo-strip-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
  color: var(--gray-500);
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  opacity: .75;
}

/* ---------- Tabs (Courses / Consulting) ---------- */
.tab-switch {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: -12px auto 40px;
  background: var(--gray-100);
  padding: 6px;
  border-radius: 999px;
  width: fit-content;
}
.tab-btn {
  border: none;
  background: transparent;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  color: var(--gray-700);
  cursor: pointer;
  transition: all .2s ease;
}
.tab-btn.active { background: var(--navy); color: var(--white); }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ---------- Card grids ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.card-thumb {
  aspect-ratio: 16/9;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 14px;
}
.card-thumb .badge {
  background: rgba(255,255,255,.92);
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: .03em;
}
.thumb-1 { background: linear-gradient(135deg,#2e6bff,#0a1f44); }
.thumb-2 { background: linear-gradient(135deg,#f5a623,#c2410c); }
.thumb-3 { background: linear-gradient(135deg,#0a1f44,#2e6bff 70%); }
.thumb-4 { background: linear-gradient(135deg,#1c4fd6,#7c8aa0); }
.thumb-5 { background: linear-gradient(135deg,#d98c0f,#2e6bff); }
.thumb-6 { background: linear-gradient(135deg,#0a1f44,#f5a623 120%); }

.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.card-tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.card-body h3 { font-size: 18px; margin-bottom: 2px; }
.card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--gray-500);
  margin-top: auto;
  padding-top: 10px;
}
.stars { color: var(--amber-dark); font-size: 13px; }
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-top: 1px solid var(--gray-200);
}
.price { font-family: 'Poppins', sans-serif; font-weight: 700; color: var(--navy); font-size: 16px; }
.price span { font-weight: 500; color: var(--gray-500); font-size: 12px; text-decoration: line-through; margin-right: 6px;}

.grid-cta { text-align: center; margin-top: 44px; }

/* ---------- Consulting tiers ---------- */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.tier-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.tier-card.featured {
  border-color: var(--blue);
  box-shadow: var(--shadow-md);
  position: relative;
}
.tier-card.featured::before {
  content: "MOST POPULAR";
  position: absolute;
  top: -13px;
  left: 28px;
  background: var(--amber);
  color: var(--navy-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  padding: 4px 12px;
  border-radius: 999px;
}
.tier-card h3 { font-size: 20px; }
.tier-price { font-family: 'Poppins', sans-serif; font-size: 30px; font-weight: 700; color: var(--navy); }
.tier-price span { font-size: 14px; font-weight: 500; color: var(--gray-500); }
.tier-list { list-style: none; padding: 0; margin: 6px 0 10px; display: flex; flex-direction: column; gap: 10px; }
.tier-list li { display: flex; gap: 10px; font-size: 14px; color: var(--gray-700); align-items: flex-start; }
.tier-list li svg { flex-shrink: 0; margin-top: 2px; color: var(--blue); }

/* ---------- Why / features ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.feature-item {
  text-align: center;
  padding: 28px 18px;
}
.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(46,107,255,.1);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.feature-item h3 { font-size: 16px; }
.feature-item p { font-size: 14px; }

/* ---------- About / founder ---------- */
.about-wrap {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 56px;
  align-items: center;
}
.founder-photo {
  aspect-ratio: 4/5;
  border-radius: 20px;
  background: linear-gradient(160deg, #14306b, #0a1f44 60%, #071530);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.founder-photo svg { width: 46%; opacity: .9; }
.founder-photo .ring {
  position: absolute;
  width: 220px;
  height: 220px;
  border: 1px dashed rgba(245,166,35,.5);
  border-radius: 50%;
}
.founder-credit {
  position: absolute;
  bottom: 18px;
  left: 18px;
  right: 18px;
  background: rgba(7,21,48,.75);
  color: var(--white);
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13px;
}
.founder-credit strong { display: block; font-size: 14px; }

.about-badges {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.about-badge {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--navy);
  font-weight: 600;
}

/* ---------- Testimonials ---------- */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testi-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 26px;
}
.testi-card .stars { margin-bottom: 12px; }
.testi-card p.quote {
  font-style: italic;
  color: var(--ink);
  font-size: 15px;
}
.testi-who {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}
.testi-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--navy));
  flex-shrink: 0;
}
.testi-who strong { display: block; font-size: 14px; color: var(--navy); }
.testi-who span { font-size: 12px; color: var(--gray-500); }
.placeholder-note {
  text-align: center;
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 28px;
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--gray-200);
}
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 0;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-q .plus { transition: transform .2s ease; font-size: 20px; color: var(--blue); }
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
}
.faq-a p { padding-bottom: 18px; font-size: 14.5px; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--navy), #123064 60%, var(--navy));
  color: var(--white);
  border-radius: 24px;
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-banner h2 { color: var(--white); font-size: 28px; max-width: 480px; margin-bottom: 8px; }
.cta-banner p { color: #c7d2ea; max-width: 480px; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer {
  background: var(--navy-dark);
  color: #b9c4dd;
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
}
.footer .brand { color: var(--white); }
.footer .brand small { color: #8393b5; }
.footer p.about-text { font-size: 14px; margin-top: 14px; max-width: 280px; }
.footer h4 {
  color: var(--white);
  font-size: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer ul li a { font-size: 14px; color: #b9c4dd; }
.footer ul li a:hover { color: var(--amber); }
.footer-newsletter input {
  width: 100%;
  padding: 11px 14px;
  border-radius: 8px;
  border: 1px solid #223763;
  background: #0d2450;
  color: var(--white);
  font-family: inherit;
  margin-bottom: 10px;
}
.footer-bottom {
  border-top: 1px solid #1c3a70;
  margin-top: 48px;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: #7d8dae;
}
.social-row { display: flex; gap: 12px; }
.social-row a {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: #0d2450;
  display: flex; align-items: center; justify-content: center;
}
.social-row a:hover { background: var(--blue); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .grid, .tier-grid, .testi-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .about-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-links, .nav-actions .btn-ghost { display: none; }
  .nav-toggle { display: block; }
  body.nav-open .nav-links {
    display: flex;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px 24px;
    gap: 18px;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
  }
  .hero h1 { font-size: 32px; }
  .section { padding: 56px 0; }
  .grid, .tier-grid, .testi-grid, .feature-grid, .footer-grid { grid-template-columns: 1fr; }
  .cta-banner { padding: 36px 24px; text-align: center; justify-content: center; }
  .cta-banner p { margin-left: auto; margin-right: auto; }
}
