:root{
  --bg-primary:   #0A0E1A;
  --bg-secondary: #0D1320;
  --bg-panel:     #121A29;
  --bg-panel-2:   #161F31;
  --border:       #232D40;
  --border-soft:  #1B2434;

  --text-primary: #E8ECF4;
  --text-muted:   #8B96AC;
  --text-faint:   #5C6883;

  --teal:         #22D3AE;
  --teal-dim:     rgba(34,211,174,.14);
  --amber:        #F5A623;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --radius: 10px;
  --radius-lg: 16px;
  --container: 1160px;

  --ease: cubic-bezier(.22,.9,.35,1);
}

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

html{ scroll-behavior:smooth; }

body{
  background:var(--bg-primary);
  color:var(--text-primary);
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
}

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; }
button{ font:inherit; cursor:pointer; }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; scroll-behavior:auto !important; }
}

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

::selection{ background:var(--teal); color:#04140F; }

:focus-visible{
  outline:2px solid var(--teal);
  outline-offset:3px;
  border-radius:4px;
}

/* subtle background grid used behind the hero */
.hero-grid{
  position:absolute; inset:0;
  background-image:
    linear-gradient(var(--border-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-soft) 1px, transparent 1px);
  background-size:56px 56px;
  -webkit-mask-image:radial-gradient(ellipse 70% 60% at 50% 30%, #000 40%, transparent 80%);
          mask-image:radial-gradient(ellipse 70% 60% at 50% 30%, #000 40%, transparent 80%);
  opacity:.6;
  pointer-events:none;
}

/* ==========================================================================
   Type helpers
   ========================================================================== */

.eyebrow{
  font-family:var(--font-mono);
  font-size:.82rem;
  color:var(--text-faint);
  letter-spacing:.02em;
  margin-bottom:14px;
}
.eyebrow .prompt{ color:var(--teal); }

.akcent { color:var(--teal); }

.section-title{
  font-family:var(--font-display);
  font-weight:600;
  font-size:clamp(1.7rem, 3vw, 2.4rem);
  letter-spacing:-.01em;
  margin-bottom:16px;
}

.section-lede{
  color:var(--text-muted);
  max-width:640px;
  margin-bottom:48px;
  font-size:1.02rem;
}

.text-teal{ color:var(--teal); }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:13px 26px;
  border-radius:8px;
  font-family:var(--font-mono);
  font-size:.9rem;
  font-weight:500;
  border:1px solid transparent;
  transition:transform .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
  white-space:nowrap;
}
.btn:hover{ transform:translateY(-2px); }

.btn-primary{
  background:var(--teal);
  color:#04140F;
}
.btn-primary:hover{ background:#3fe0bd; }

.btn-outline{
  border-color:var(--border);
  color:var(--text-primary);
}
.btn-outline:hover{ border-color:var(--teal); color:var(--teal); }

.btn-ghost{
  color:var(--text-muted);
  border:1px solid var(--border);
}
.btn-ghost:hover{ color:var(--teal); border-color:var(--teal); }

.btn-sm{ padding:8px 16px; font-size:.78rem; }
.btn-block{ width:100%; }

/* ==========================================================================
   Header / nav
   ========================================================================== */

.site-header{
  position:fixed;
  top:0; left:0; right:0;
  z-index:100;
  background:rgba(10,14,26,.7);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--border-soft);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:76px;
}

.logo{
  font-family:var(--font-mono);
  font-weight:600;
  font-size:1.15rem;
  letter-spacing:.02em;
}
.logo-bracket{ color:var(--teal); }

.main-nav{
  display:flex;
  gap:30px;
}

.nav-link{
  font-size:.92rem;
  color:var(--text-muted);
  position:relative;
  padding:6px 0;
  transition:color .18s var(--ease);
}
.nav-link:hover, .nav-link.active{ color:var(--text-primary); }
.nav-link.active::after{
  content:"";
  position:absolute; left:0; right:0; bottom:-2px;
  height:2px; background:var(--teal);
  border-radius:2px;
}

.header-actions{ display:flex; align-items:center; gap:14px; }

.investors-link{ display:inline-flex; }

.nav-toggle{
  display:none;
  flex-direction:column;
  gap:5px;
  background:none; border:none;
  padding:6px;
}
.nav-toggle span{
  width:22px; height:2px; background:var(--text-primary);
  border-radius:2px; transition:transform .2s var(--ease), opacity .2s var(--ease);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero{
  position:relative;
  min-height:100vh;
  display:flex;
  align-items:center;
  padding:140px 0 80px;
  overflow:hidden;
}

.hero-inner{
  position:relative;
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:56px;
  align-items:center;
}

.hero-title{
  font-family:var(--font-display);
  font-weight:700;
  font-size:clamp(2.6rem, 5.4vw, 4.2rem);
  line-height:1.05;
  letter-spacing:-.02em;
  margin-bottom:10px;
}

.hero-role{
  font-family:var(--font-mono);
  color:var(--teal);
  font-size:1.15rem;
  min-height:1.6em;
  margin-bottom:22px;
}
.cursor{ animation:blink 1s steps(1) infinite; color:var(--teal); }
@keyframes blink{ 50%{ opacity:0; } }

.hero-lede{
  color:var(--text-muted);
  max-width:560px;
  font-size:1.05rem;
  margin-bottom:34px;
}

.hero-cta{ display:flex; gap:16px; flex-wrap:wrap; }

/* status panel — signature element */
.hero-panel{
  background:var(--bg-panel);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  overflow:hidden;
  box-shadow:0 30px 60px -20px rgba(0,0,0,.55);
}

.panel-header{
  display:flex;
  align-items:center;
  gap:10px;
  padding:14px 18px;
  background:var(--bg-panel-2);
  border-bottom:1px solid var(--border);
}
.panel-dots{ display:flex; gap:6px; }
.panel-dots span{
  width:10px; height:10px; border-radius:50%;
  background:var(--border);
}
.panel-dots span:nth-child(1){ background:#ED6A5E; }
.panel-dots span:nth-child(2){ background:#F5BF4F; }
.panel-dots span:nth-child(3){ background:#61C554; }

.panel-title{
  font-family:var(--font-mono);
  font-size:.78rem;
  color:var(--text-faint);
}

.panel-body{ padding:22px; }

.status-row{
  display:flex; align-items:center; gap:10px;
  font-family:var(--font-mono);
  font-size:.88rem;
  margin-bottom:20px;
  padding-bottom:18px;
  border-bottom:1px dashed var(--border);
}

.status-dot{
  width:9px; height:9px; border-radius:50%;
  background:var(--teal);
  box-shadow:0 0 0 0 var(--teal-dim);
  animation:pulse 2s infinite;
  flex-shrink:0;
}
@keyframes pulse{
  0%{ box-shadow:0 0 0 0 rgba(34,211,174,.45); }
  70%{ box-shadow:0 0 0 8px rgba(34,211,174,0); }
  100%{ box-shadow:0 0 0 0 rgba(34,211,174,0); }
}

.status-list{ display:flex; flex-direction:column; gap:13px; margin-bottom:20px; }
.status-list li{
  display:flex; justify-content:space-between; gap:12px;
  font-size:.88rem;
}
.status-label{ color:var(--text-muted); }
.status-value{ font-family:var(--font-mono); font-weight:500; text-align:right; }

.status-tags{ display:flex; flex-wrap:wrap; gap:8px; }
.tag{
  font-family:var(--font-mono);
  font-size:.72rem;
  padding:5px 10px;
  border-radius:20px;
  border:1px solid var(--border);
  color:var(--text-muted);
}

.scroll-cue{
  position:absolute;
  bottom:28px; left:50%;
  transform:translateX(-50%);
  width:26px; height:40px;
  border:2px solid var(--border);
  border-radius:14px;
  display:flex; justify-content:center; padding-top:8px;
}
.scroll-cue span{
  width:4px; height:8px; border-radius:2px;
  background:var(--teal);
  animation:scrollcue 1.6s infinite;
}
@keyframes scrollcue{
  0%{ opacity:1; transform:translateY(0); }
  70%{ opacity:0; transform:translateY(10px); }
  100%{ opacity:0; }
}

/* ==========================================================================
   Sections (generic)
   ========================================================================== */

.section{ padding:110px 0; }
.section-alt{ background:var(--bg-secondary); border-top:1px solid var(--border-soft); border-bottom:1px solid var(--border-soft); }

.reveal{ opacity:0; transform:translateY(24px); transition:opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible{ opacity:1; transform:none; }

/* ==========================================================================
   About
   ========================================================================== */

.about-grid{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:60px;
  align-items:start;
}

.about-text p{ color:var(--text-muted); margin-bottom: 18px;}
.about-text .btn{ margin-top: 8px;}
.about-text ul{ color:var(--text-muted); margin-bottom: 18px;}

.about-code{
  background:var(--bg-panel);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  overflow:hidden;
}

.code-block{
  padding:22px;
  font-family:var(--font-mono);
  font-size:.82rem;
  line-height:1.9;
  color:var(--text-muted);
  overflow-x:auto;
}
.tok-key{ color:#7BB6FF; }
.tok-str{ color:var(--teal); }
.tok-bool{ color:var(--amber); }
.tok-brace{ color:var(--text-faint); }

/* ==========================================================================
   Cards / specializations
   ========================================================================== */

.cards-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:24px;
}

.card{
  background:var(--bg-panel);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  padding:30px 26px;
  transition:transform .25s var(--ease), border-color .25s var(--ease);
}
.card:hover{ transform:translateY(-6px); border-color:var(--teal); }

.card-icon{
  width:46px; height:46px;
  border-radius:10px;
  background:var(--teal-dim);
  color:var(--teal);
  display:flex; align-items:center; justify-content:center;
  margin-bottom:18px;
}
.card-icon svg{ width:22px; height:22px; }

.card h3{
  font-family:var(--font-display);
  font-size:1.08rem;
  margin-bottom:10px;
}
.card p{ color:var(--text-muted); font-size:.94rem; }

/* ==========================================================================
   Skills
   ========================================================================== */

.skills-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:28px 48px;
}

.skill-head{
  display:flex; justify-content:space-between;
  font-family:var(--font-mono);
  font-size:.86rem;
  margin-bottom:10px;
}
.skill-pct{ color:var(--teal); }

.skill-bar{
  height:8px;
  background:var(--bg-panel-2);
  border:1px solid var(--border);
  border-radius:6px;
  overflow:hidden;
}
.skill-fill{
  height:100%;
  width:0;
  background:linear-gradient(90deg, var(--teal), #59e8c8);
  border-radius:6px;
  transition:width 1.1s var(--ease);
}

/* ==========================================================================
   Timeline
   ========================================================================== */

.timeline{
  position:relative;
  max-width:760px;
  padding-left:36px;
}
.timeline::before{
  content:"";
  position:absolute;
  left:5px; top:6px; bottom:6px;
  width:2px;
  background:var(--border);
}

.timeline-item{ position:relative; padding-bottom:42px; }
.timeline-item:last-child{ padding-bottom:0; }

.timeline-dot{
  position:absolute;
  left:-36px; top:4px;
  width:12px; height:12px;
  border-radius:50%;
  background:var(--bg-primary);
  border:2px solid var(--text-faint);
}
.timeline-dot-active{
  border-color:var(--teal);
  background:var(--teal);
  box-shadow:0 0 0 4px var(--teal-dim);
}

.timeline-date{
  font-family:var(--font-mono);
  color:var(--teal);
  font-size:.8rem;
  display:inline-block;
  margin-bottom:6px;
}

.timeline-content h3{
  font-family:var(--font-display);
  font-size:1.1rem;
  margin-bottom:8px;
}
.timeline-content p{ color:var(--text-muted); font-size:.95rem; }

/* ==========================================================================
   Partners
   ========================================================================== */

.partners-row{
  display:flex;
  align-items:center;
  gap:48px;
  flex-wrap:wrap;
}

.partner-logo{
  background:var(--bg-panel);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:22px 34px;
  transition:border-color .2s var(--ease), transform .2s var(--ease);
}
.partner-logo:hover{ border-color:var(--teal); transform:translateY(-3px); }
.partner-logo img{ height:34px; width:auto; filter:grayscale(1) brightness(1.6); opacity:.85; }
.partner-logo:hover img{ filter:none; opacity:1; }

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-grid{
  display:grid;
  grid-template-columns:.9fr 1.1fr;
  gap:56px;
}

.contact-info{ display:flex; flex-direction:column; gap:26px; }
.contact-item{ display:flex; gap:16px; align-items:flex-start; }

.contact-icon{
  width:42px; height:42px; flex-shrink:0;
  border-radius:9px;
  background:var(--teal-dim);
  color:var(--teal);
  display:flex; align-items:center; justify-content:center;
}
.contact-icon svg{ width:19px; height:19px; }

.contact-label{
  display:block;
  font-family:var(--font-mono);
  font-size:.72rem;
  color:var(--text-faint);
  text-transform:uppercase;
  letter-spacing:.06em;
  margin-bottom:4px;
}
.contact-value{ font-size:.98rem; }
a.contact-value:hover{ color:var(--teal); }

.contact-form{
  background:var(--bg-panel);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  padding:32px;
  display:flex;
  flex-direction:column;
  gap:18px;
}

.form-row{ display:flex; flex-direction:column; gap:8px; }
.form-row label{
  font-family:var(--font-mono);
  font-size:.78rem;
  color:var(--text-muted);
}

.form-row input, .form-row textarea{
  background:var(--bg-primary);
  border:1px solid var(--border);
  border-radius:8px;
  padding:12px 14px;
  color:var(--text-primary);
  font-family:var(--font-body);
  font-size:.94rem;
  resize:vertical;
  transition:border-color .18s var(--ease);
}
.form-row input:focus, .form-row textarea:focus{
  border-color:var(--teal);
  outline:none;
}

.form-status{
  font-family:var(--font-mono);
  font-size:.82rem;
  min-height:1.2em;
  color:var(--teal);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer{ padding:40px 0; border-top:1px solid var(--border-soft); }
.footer-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  flex-wrap:wrap;
}
.footer-copy{ color:var(--text-faint); font-size:.85rem; }
.footer-copy a{ color:var(--text-muted); }
.footer-copy a:hover{ color:var(--teal); }

.back-to-top{
  width:38px; height:38px;
  border:1px solid var(--border);
  border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  transition:border-color .2s var(--ease), color .2s var(--ease);
  color:var(--text-muted);
}
.back-to-top:hover{ border-color:var(--teal); color:var(--teal); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 980px){
  .hero-inner{ grid-template-columns:1fr; }
  .about-grid{ grid-template-columns:1fr; }
  .cards-grid{ grid-template-columns:repeat(2, 1fr); }
  .skills-grid{ grid-template-columns:1fr; }
  .contact-grid{ grid-template-columns:1fr; }
}

@media (max-width: 760px){
  .main-nav{
    position:fixed;
    top:76px; left:0; right:0;
    background:var(--bg-primary);
    border-bottom:1px solid var(--border-soft);
    flex-direction:column;
    gap:0;
    padding:8px 24px 18px;
    transform:translateY(-130%);
    opacity:0;
    transition:transform .28s var(--ease), opacity .28s var(--ease);
  }
  .main-nav.open{ transform:translateY(0); opacity:1; }
  .main-nav .nav-link{ padding:12px 0; border-bottom:1px solid var(--border-soft); }
  .nav-toggle{ display:flex; }
  .investors-link{ display:none; }
  .cards-grid{ grid-template-columns:1fr; }
  .partners-row{ gap:24px; }
}

.nav-toggle.open span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2){ opacity:0; }
.nav-toggle.open span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }
