/* ============================================
   Pure AI Studio — Global Styles
   Modern dark-tech theme
   ============================================ */

:root {
  --bg-0: #05060d;
  --bg-1: #0a0c18;
  --bg-2: #11142a;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.18);
  --text: #e7eaf6;
  --text-dim: #9aa3c7;
  --text-mute: #6b7299;
  --accent: #6366f1;
  --accent-2: #22d3ee;
  --accent-3: #a855f7;
  --gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #22d3ee 100%);
  --gradient-soft: linear-gradient(135deg, rgba(99,102,241,0.18), rgba(168,85,247,0.12), rgba(34,211,238,0.18));
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  --max-w: 1180px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-0);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  background:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(99,102,241,0.18), transparent 60%),
    radial-gradient(ellipse 80% 60% at 90% 10%, rgba(34,211,238,0.12), transparent 60%),
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(168,85,247,0.10), transparent 70%),
    var(--bg-0);
}

a { color: var(--accent-2); text-decoration: none; transition: color .2s; }
a:hover { color: var(--text); }

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

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--text-dim); }

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

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* ====== Nav ====== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(5, 6, 13, 0.7);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}

.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--gradient);
  display: grid;
  place-items: center;
  box-shadow: 0 0 30px rgba(99,102,241,0.5);
  position: relative;
}
.brand-logo::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 6px;
  background: rgba(5,6,13,0.85);
}
.brand-logo span {
  position: relative;
  font-weight: 800;
  color: #fff;
  font-size: 0.85rem;
  z-index: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  color: var(--text-dim);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}
.nav-links .nav-cta {
  background: var(--gradient);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(99,102,241,0.35);
}
.nav-links .nav-cta:hover {
  filter: brightness(1.1);
  color: #fff;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.6rem;
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(10, 12, 24, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 24px;
    gap: 18px;
    transform: translateY(-110%);
    transition: transform .3s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-toggle { display: block; }
}

/* ====== Hero ====== */
.hero {
  position: relative;
  padding: 96px 0 80px;
  overflow: hidden;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(99,102,241,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 40%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 40%, #000 30%, transparent 80%);
  pointer-events: none;
}
.hero-orb {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  pointer-events: none;
  animation: float 14s ease-in-out infinite;
}
.hero-orb.o1 { top: -180px; left: -100px; background: radial-gradient(circle, #6366f1, transparent 65%); }
.hero-orb.o2 { bottom: -200px; right: -120px; background: radial-gradient(circle, #22d3ee, transparent 65%); animation-delay: -7s; }
.hero-orb.o3 { top: 30%; right: 20%; width: 320px; height: 320px; background: radial-gradient(circle, #a855f7, transparent 65%); animation-delay: -3s; }

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, -30px); }
}

.hero-inner {
  position: relative;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 24px;
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22d3ee;
  box-shadow: 0 0 10px #22d3ee;
}

.hero h1 { margin-bottom: 24px; }

.hero p.lead {
  font-size: 1.2rem;
  color: var(--text-dim);
  max-width: 720px;
  margin: 0 auto 36px;
}

.cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s, filter .15s, background .2s;
}
.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 10px 30px rgba(99,102,241,0.4);
}
.btn-primary:hover { filter: brightness(1.1); transform: translateY(-1px); color: #fff; }

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--surface-strong); color: var(--text); }

/* ====== Section primitives ====== */
section { padding: 80px 0; position: relative; }
.section-head { text-align: center; max-width: 740px; margin: 0 auto 56px; }
.section-head h2 { margin-bottom: 16px; }
.section-head p { color: var(--text-dim); font-size: 1.05rem; }

.grid {
  display: grid;
  gap: 22px;
}
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
  position: relative;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: var(--surface-strong);
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-soft);
  opacity: 0;
  transition: opacity .25s;
  pointer-events: none;
}
.card:hover::before { opacity: 0.5; }
.card > * { position: relative; }

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--gradient-soft);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  font-size: 1.4rem;
  border: 1px solid var(--border-strong);
}

.card h3 { color: var(--text); }

.tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(99,102,241,0.15);
  color: #c7d2fe;
  border: 1px solid rgba(99,102,241,0.3);
}

/* ====== Stats ====== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
}
.stat-label { color: var(--text-dim); font-size: 0.92rem; }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); padding: 28px; } }

/* ====== Footer ====== */
.footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
  margin-top: 40px;
  background: rgba(5,6,13,0.6);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 36px;
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
.footer h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-mute);
  margin-bottom: 16px;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: 10px; }
.footer ul a { color: var(--text-dim); }
.footer ul a:hover { color: var(--text); }
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-mute);
  font-size: 0.9rem;
}

/* ====== Forms ====== */
.form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 500;
}
.field .hint { color: var(--text-mute); font-size: 0.82rem; }
.field input,
.field select,
.field textarea {
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 12px 14px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.98rem;
  outline: none;
  transition: border-color .2s, background .2s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent-2);
  background: rgba(0,0,0,0.5);
}
.field textarea { min-height: 130px; resize: vertical; }

.file-drop {
  border: 2px dashed var(--border-strong);
  border-radius: 12px;
  padding: 28px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  background: rgba(0,0,0,0.2);
}
.file-drop:hover, .file-drop.drag {
  border-color: var(--accent-2);
  background: rgba(34,211,238,0.05);
}
.file-drop input[type=file] { display: none; }
.file-drop .file-icon { font-size: 1.8rem; margin-bottom: 8px; }
.file-drop .file-name { color: var(--accent-2); font-size: 0.92rem; margin-top: 8px; }

/* ====== Page header ====== */
.page-header {
  padding: 96px 0 56px;
  text-align: center;
  position: relative;
}

/* ====== Jobs list ====== */
.jobs {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.job {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 26px;
  transition: border-color .2s, transform .2s;
}
.job:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.job h3 { margin: 0 0 6px; color: var(--text); }
.job-meta {
  color: var(--text-mute);
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.job-meta span::before { content: '•'; margin-right: 8px; color: var(--text-mute); }
.job-meta span:first-child::before { content: ''; margin: 0; }
.job-apply {
  background: var(--surface-strong);
  color: var(--text);
  border: 1px solid var(--border-strong);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background .2s;
}
.job-apply:hover { background: var(--gradient); border-color: transparent; }

@media (max-width: 600px) {
  .job { grid-template-columns: 1fr; }
}

/* ====== Misc ====== */
.value-list { list-style: none; padding: 0; margin: 0; }
.value-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 14px;
  color: var(--text-dim);
}
.value-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-2);
  font-weight: 700;
}

.notice {
  background: rgba(34,211,238,0.08);
  border: 1px solid rgba(34,211,238,0.25);
  border-radius: 12px;
  padding: 16px 20px;
  color: var(--text-dim);
  font-size: 0.92rem;
}

.success-banner {
  background: rgba(34,197,94,0.10);
  border: 1px solid rgba(34,197,94,0.35);
  color: #bbf7d0;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 20px;
  display: none;
}
.success-banner.show { display: block; }
.success-banner.error {
  background: rgba(239,68,68,0.10);
  border-color: rgba(239,68,68,0.35);
  color: #fecaca;
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
