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

html, body { height: 100%; }

:root{
  --text: #071023;
  --muted: rgba(7,16,35,0.72);
  --card: rgba(255,255,255,0.72);
  --card2: rgba(255,255,255,0.58);
  --stroke: rgba(148,163,184,0.28);
  --stroke2: rgba(148,163,184,0.22);
  --shadow: 0 22px 55px rgba(7,16,35,0.18);

  --accentA: #fb923c;
  --accentB: #38bdf8;
  --accentC: #f97316;
}

body{
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  line-height: 1.55;
  background: #ffffff; /* fallback */
}

/* Background layer */
.page{
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.bg-texture{
  position: fixed;
  inset: 0;
  background-image: url("assets/techla-bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 1;
  z-index: 0;
}

/* Tech grid overlay */
.page::before{
  content:"";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 10%, rgba(56,189,248,0.16), transparent 55%),
    radial-gradient(circle at 70% 30%, rgba(251,146,60,0.14), transparent 55%),
    linear-gradient(to bottom, rgba(255,255,255,0.10), rgba(255,255,255,0.35)),
    repeating-linear-gradient(
      to right,
      rgba(7,16,35,0.05),
      rgba(7,16,35,0.05) 1px,
      transparent 1px,
      transparent 52px
    ),
    repeating-linear-gradient(
      to bottom,
      rgba(7,16,35,0.05),
      rgba(7,16,35,0.05) 1px,
      transparent 1px,
      transparent 52px
    );
  mix-blend-mode: multiply;
  opacity: 0.55;
}

.main,
.header,
.footer{
  position: relative;
  z-index: 1;
}

/* Layout */
.container{
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section{
  padding: 3.2rem 0;
}

/* Header */
.header{
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: rgba(255,255,255,0.42);
  border-bottom: 1px solid var(--stroke);
}

.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0;
}

/* Brand */
.brand{
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
}

.brand-logo{
  width: 28px;
  height: 28px;
  border-radius: 10px;
  box-shadow: 0 14px 30px rgba(7,16,35,0.18);
}

.brand-title{
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 650;
  letter-spacing: 0.02em;
}

/* Nav */
.nav{ display: flex; gap: 0.35rem; flex-wrap: wrap; }

.nav-link{
  text-decoration: none;
  color: rgba(7,16,35,0.85);
  font-size: 0.92rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  transition: background 160ms ease, transform 120ms ease;
}

.nav-link:hover{
  background: rgba(255,255,255,0.75);
  transform: translateY(-1px);
}

/* Hero */
.hero{
  padding-top: 2.4rem;
  padding-bottom: 2.2rem;
}

.hero-grid{
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 1.25rem;
  align-items: center;
}

.eyebrow{
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
  color: rgba(56,189,248,0.95);
  margin-bottom: 0.7rem;
}

.h1{
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: clamp(2.5rem, 4.2vw, 3.2rem);
  line-height: 1.05;
  margin-bottom: 0.8rem;
}

.lead{
  font-size: 1.06rem;
  color: var(--muted);
  max-width: 58ch;
}

.actions{
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.35rem;
}

.hero-proof{
  margin-top: 0.85rem;
  font-size: 0.9rem;
  color: rgba(7,16,35,0.62);
}

/* Big button */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 2.2rem;
  border-radius: 999px;
  font-size: 1.02rem;
  font-weight: 600;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 160ms ease, background 160ms ease;
  white-space: nowrap;
}

.btn.primary{
  background: linear-gradient(135deg, var(--accentA), var(--accentC));
  color: #fff;
  box-shadow: 0 18px 40px rgba(7,16,35,0.22);
}

.btn.primary:hover{
  transform: translateY(-1px);
  box-shadow: 0 24px 55px rgba(7,16,35,0.26);
}

/* Make the hero button feel longer */
.btn-wide{
  min-width: 260px;
}

/* Tech panel on the right */
.tech-panel{
  background: rgba(255,255,255,0.55);
  border: 1px solid var(--stroke);
  border-radius: 26px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.tech-top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1rem;
  background: rgba(255,255,255,0.55);
  border-bottom: 1px solid var(--stroke2);
}

.dots{
  display: inline-flex;
  gap: 0.35rem;
}

.dot{
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(7,16,35,0.22);
}

.tech-title{
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 0.92rem;
  color: rgba(7,16,35,0.75);
}

.tech-body{
  padding: 1.05rem 1.1rem 1.15rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.92rem;
  color: rgba(7,16,35,0.86);
  line-height: 1.65;
}

.code-line{ opacity: 0.9; }
.code-accent{ color: rgba(56,189,248,0.95); }
.code-warm{ color: rgba(251,146,60,0.95); }

/* Cards */
.card{
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 26px;
  padding: 1.35rem 1.35rem;
  box-shadow: 0 18px 34px rgba(7,16,35,0.12);
}

/* Section titles */
.h2{
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.centered-title{
  text-align: center;
}

.mission-container{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.mission-card{
  max-width: 780px;
}

/* Partners */
.partners{ text-align: center; }

.partners-img{
  width: 100%;
  max-width: 640px;
  border-radius: 26px;
  border: 1px solid var(--stroke);
  box-shadow: 0 20px 40px rgba(7,16,35,0.18);
  margin-top: 0.75rem;
  background: rgba(255,255,255,0.4);
}

.caption{
  margin-top: 0.85rem;
  font-size: 0.95rem;
  color: rgba(7,16,35,0.62);
}

/* Footer */
.footer{
  padding: 2.2rem 0 2.6rem;
}

.footer-inner{
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.92rem;
  color: rgba(7,16,35,0.58);
}

.footer a{
  color: rgba(7,16,35,0.70);
  text-decoration: none;
}

.footer a:hover{
  text-decoration: underline;
}

/* Intro overlay */
.intro{
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(18px);
  transition: opacity 450ms ease, visibility 450ms ease;
}

.intro[data-hide="true"]{
  opacity: 0;
  visibility: hidden;
}

.typewrap{
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 1.2rem 1.4rem;
  border-radius: 28px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.62);
  box-shadow: var(--shadow);
}

.typed{
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 650;
  font-size: clamp(1.55rem, 3vw, 2.1rem);
}

.caret{
  width: 10px;
  height: 1.2em;
  border-radius: 3px;
  background: var(--accentC);
  display: inline-block;
  animation: blink 900ms infinite;
}

@keyframes blink{
  0%,49%{ opacity: 1; }
  50%,100%{ opacity: 0; }
}

/* Hide main until intro finishes */
.main[data-hidden="true"]{
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 450ms ease, transform 450ms ease;
}

.main[data-hidden="false"]{
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px){
  .hero-grid{ grid-template-columns: 1fr; }
  .header-inner{ flex-direction: column; align-items: flex-start; }
  .btn-wide{ min-width: 240px; }
}

@media (max-width: 520px){
  .btn{ width: 100%; }
}


/* Center the Application section */
.apply-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* If you still have the two-column layout, collapse it into one centered column */
.apply-center .apply-row {
  grid-template-columns: 1fr;
  width: 100%;
  max-width: 760px;
  justify-items: center;
}

/* Make the cards feel centered and consistent */
.apply-center .apply-card,
.apply-center .mini-card {
  width: 100%;
  max-width: 760px;
}

/* Optional: center the bullet list nicely */
.apply-center .list {
  display: inline-block;
  text-align: left;
  margin: 0 auto;
}

.apply-center .btn.primary {
  padding-left: 3.2rem;
  padding-right: 3.2rem;
  font-size: 1.05rem;
}


/* Centered Application card */
.apply-card-centered {
  max-width: 620px;
  padding: 2rem 2rem 2.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Subtext under title */
.apply-subtext {
  margin: 0.5rem 0 1.4rem;
  color: rgba(7,16,35,0.72);
  font-size: 1rem;
}

/* Email spacing */
.apply-email {
  margin-top: 0.9rem;
  font-size: 0.95rem;
  color: rgba(7,16,35,0.7);
}

/* Divider line */
.apply-divider {
  width: 100%;
  height: 1px;
  background: rgba(148,163,184,0.35);
  margin: 1.6rem 0 1.2rem;
}

/* Label above bullets */
.apply-label {
  font-weight: 600;
  margin-bottom: 0.6rem;
}

/* Bullet list centering */
.apply-card-centered .list {
  display: inline-block;
  text-align: left;
}
