/* Fusion Semi — design tokens & base */
:root {
  color-scheme: light;
  --bg: #f4f6f8;
  --bg-elevated: #ffffff;
  --text: #1a2332;
  --text-muted: #4a5568;
  --border: #d8dee6;
  --primary: #0c4a6e;
  --primary-hover: #075985;
  --primary-fg: #f0f9ff;
  --secondary: #334155;
  --accent: #0d9488;
  --accent-soft: rgba(13, 148, 136, 0.12);
  --grid-line: rgba(12, 74, 110, 0.06);
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.06);
  --radius: 10px;
  --font-sans: "IBM Plex Sans", system-ui, sans-serif;
  --font-display: "Source Serif 4", Georgia, serif;
  --header-h: 4.25rem;
  --max: 72rem;
  --space-section: clamp(3.5rem, 8vw, 6rem);
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f1419;
  --bg-elevated: #161d27;
  --text: #e8eef4;
  --text-muted: #94a3b8;
  --border: #2a3544;
  --primary: #38bdf8;
  --primary-hover: #7dd3fc;
  --primary-fg: #0c1220;
  --secondary: #cbd5e1;
  --accent: #2dd4bf;
  --accent-soft: rgba(45, 212, 191, 0.12);
  --grid-line: rgba(56, 189, 248, 0.08);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 12px 40px rgba(0, 0, 0, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    linear-gradient(var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--primary-hover);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  padding: 0.5rem 1rem;
  background: var(--primary);
  color: var(--primary-fg);
  z-index: 1000;
  border-radius: 4px;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg-elevated) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  color: var(--text);
}

.brand-logo {
  width: 56px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: auto;
  display: block;
}

.logo-svg {
  display: block;
  color: var(--primary);
}

.logo-dot {
  fill: var(--accent);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand-tag {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  color: var(--text);
}

.nav-toggle-bar {
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: 0.5rem;
}

.theme-toggle {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
  position: relative;
}

.theme-icon-moon {
  display: none;
}

[data-theme="dark"] .theme-icon-sun {
  display: none;
}

[data-theme="dark"] .theme-icon-moon {
  display: inline;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.875rem;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-fg);
}

.btn-primary:hover {
  background: var(--primary-hover);
  color: var(--primary-fg);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 var(--space-section);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background:
    radial-gradient(ellipse 80% 50% at 10% 20%, var(--accent-soft), transparent 50%),
    linear-gradient(105deg, transparent 40%, color-mix(in srgb, var(--primary) 8%, transparent) 100%);
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.hero-copy {
  max-width: 38rem;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  color: var(--text);
}

.hero-lead {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  font-size: 1.0625rem;
  max-width: 36rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero-meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.hero-meta li {
  position: relative;
  padding-left: 1rem;
}

.hero-meta li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 1px;
  transform: rotate(45deg);
}

.hero-panel {
  align-self: stretch;
}

.hero-diagram {
  margin: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  background: #0b1220;
  filter: none;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.hero-caption {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.25rem 1.25rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

.hero-caption strong {
  color: var(--text);
  font-weight: 600;
}

/* Sections */
.section {
  padding: var(--space-section) 0;
  border-top: 1px solid var(--border);
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.section-head--left {
  text-align: left;
  margin-right: auto;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.section-sub {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.02rem;
}

/* Cards */
.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

.card-grid {
  list-style: none;
  margin: 0;
  padding: 0;
}

.why-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .why-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.why-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

.why-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* Courses */
.course-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .course-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.course-card h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.course-card p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.course-card--wide {
  grid-column: 1 / -1;
}

@media (min-width: 720px) {
  .course-card--wide {
    grid-column: span 2;
  }
}

.course-meta {
  display: grid;
  gap: 0.5rem 1rem;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  margin: 0;
  padding: 0.75rem 0 0;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
}

.course-meta dt {
  margin: 0;
  color: var(--text-muted);
  font-weight: 500;
}

.course-meta dd {
  margin: 0.15rem 0 0;
  font-weight: 600;
  color: var(--text);
}

/* Pathways tabs */
.pathways-tabs {
  max-width: 52rem;
}

.tablist {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
}

.tab {
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.5rem 1rem;
  border: 1px solid transparent;
  border-radius: 8px 8px 0 0;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
}

.tab:hover {
  color: var(--text);
}

.tab.is-active {
  color: var(--text);
  background: var(--bg-elevated);
  border-color: var(--border);
  border-bottom-color: var(--bg-elevated);
  margin-bottom: -1px;
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
}

.path-card h3 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
}

.path-steps {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.path-steps strong {
  color: var(--text);
}

/* Labs */
.labs-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .labs-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.lab-item {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.featured-project {
  padding: 0;
  overflow: hidden;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.featured-project-inner {
  display: grid;
  gap: 1rem;
  align-items: start;
}

@media (min-width: 800px) {
  .featured-project-inner {
    grid-template-columns: 1fr 1fr;
  }
}

.featured-copy {
  padding: 1.5rem 1.5rem 1.5rem;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.featured-visual {
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background: transparent;
  align-self: start;
  padding-top: 1.5rem;
}

.featured-copy h3 {
  margin: 0.35rem 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.25;
}

.featured-copy p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.featured-visual img {
  width: 100%;
  height: auto;
  min-height: 0;
  object-fit: cover;
  display: block;
}

.featured-visual {
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background: transparent;
  align-self: start;
}

/* Placements */
.placements-grid {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 900px) {
  .placements-grid {
    grid-template-columns: 1.4fr 1fr;
  }
}

.placements-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.placements-list .card {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.placements-list strong {
  color: var(--text);
}

.stats-card h3 {
  margin: 0 0 1rem;
  font-size: 1rem;
}

.stats-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.15rem;
}

.stats-note {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Hyderabad */
.hyderabad-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 900px) {
  .hyderabad-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: stretch;
  }
}

.hyd-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hyd-points li {
  padding-left: 1rem;
  border-left: 3px solid var(--accent);
  font-size: 0.95rem;
  color: var(--text-muted);
}

.hyd-points strong {
  color: var(--text);
}

.hyderabad-visual {
  padding: 0;
  overflow: hidden;
  height: 100%;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}

.hyderabad-visual img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.hyd-caption {
  margin: 0;
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

/* About */
.about-inner .about-body {
  max-width: 42rem;
}

.about-body p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

/* Testimonials */
.testimonial-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .testimonial-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial blockquote {
  margin: 0;
}

.testimonial p {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  font-style: italic;
}

.testimonial footer {
  font-size: 0.8125rem;
  color: var(--text);
}

.testimonial cite {
  font-style: normal;
  font-weight: 600;
}

/* FAQ */
.faq-list {
  max-width: 48rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.faq-item summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 1.5rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  font-weight: 400;
  color: var(--accent);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 0.75rem 0 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}

.contact-intro {
  display: flex;
  flex-direction: column;
}

@media (min-width: 960px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: stretch;
  }

  .contact-intro,
  .lead-form {
    height: 100%;
  }
}

.contact-address {
  font-style: normal;
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 1rem 0 1.5rem;
  line-height: 1.7;
}

.map-placeholder {
  min-height: 260px;
  padding: 0;
  overflow: hidden;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 8px,
    var(--grid-line) 8px,
    var(--grid-line) 9px
  );
  flex: 1;
}

.map-placeholder iframe {
  width: 100%;
  height: 100%;
  min-height: 260px;
  border: 0;
  display: block;
}

.lead-form .form-row {
  margin-bottom: 1rem;
}

.lead-form label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.req {
  color: var(--accent);
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.lead-form input:focus-visible,
.lead-form select:focus-visible,
.lead-form textarea:focus-visible {
  border-color: var(--primary);
}

.form-row.two {
  display: grid;
  gap: 1rem;
}

@media (min-width: 480px) {
  .form-row.two {
    grid-template-columns: 1fr 1fr;
  }
}

.form-note {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
  padding: 2.5rem 0 0;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  padding-bottom: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}

.footer-tagline {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: 16rem;
}

.footer-heading {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 0.75rem;
  color: var(--text-muted);
}

.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-nav a:hover {
  color: var(--primary);
}

.footer-contact p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.social {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  gap: 0.5rem;
}

.social a {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.social a:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1rem 0;
}

.footer-bottom-inner p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Mobile nav */
@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--bg-elevated);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.5rem 2rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.2s ease, opacity 0.2s ease, visibility 0.2s;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
  }

  .nav-list a {
    display: block;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--border);
  }

  .nav-actions {
    margin-left: 0;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-actions .btn {
    width: 100%;
  }
}

body.nav-open {
  overflow: hidden;
}
