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

/* ============================================================
   DESIGN SYSTEM
   Brand:   #3dbf97 teal (logo)
   Palette: teal → sky-blue gradient — precision + ambition
   Theme:   deep dark, glass surfaces, gradient accents
   ============================================================ */
:root {
  /* backgrounds */
  --bg:     #080c10;
  --bg-alt: #0d1218;

  /* glass surfaces */
  --surface:   rgba(255 255 255 / 0.04);
  --surface-h: rgba(255 255 255 / 0.07);
  --border:    rgba(255 255 255 / 0.08);
  --border-h:  rgba(255 255 255 / 0.16);

  /* text */
  --text:   #f0f6ff;
  --text-2: #8aa0bc;
  --text-3: #445566;

  /* brand */
  --teal:    #3dbf97;
  --teal-d:  #2ea880;
  --blue:    #60a5fa;
  --blue-d:  #3b82f6;

  /* reusable gradient */
  --grad:      linear-gradient(135deg, #3dbf97, #60a5fa);
  --grad-rev:  linear-gradient(135deg, #60a5fa, #3dbf97);
  --glow:      rgba(61 191 151 / 0.28);
  --glow-blue: rgba(96 165 250 / 0.22);

  --ff-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --ff-head: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --r:       12px;
  --r-sm:    8px;
  --ease:      0.2s ease;
  --ease-slow: 0.4s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--ff-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* === UTILITY === */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

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

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--r-sm);
  font-family: var(--ff-body);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--ease);
  border: none;
  white-space: nowrap;
  line-height: 1;
}

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 4px 24px var(--glow), 0 2px 8px var(--glow-blue);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--glow), 0 4px 16px var(--glow-blue);
  filter: brightness(1.08);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--surface); border-color: var(--border-h); }

.btn--lg   { padding: 13px 28px; font-size: 15px; }
.btn--full { width: 100%; justify-content: center; }

/* === SECTION TAG === */
.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}

/* === SECTION HEADER === */
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 {
  font-family: var(--ff-head);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 12px;
}
.section-header p {
  font-size: 16px;
  color: var(--text-2);
  max-width: 500px;
  margin: 0 auto;
}

/* === NAV === */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background var(--ease-slow), border-color var(--ease-slow), backdrop-filter var(--ease-slow);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(8 12 16 / 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-color: var(--border);
  /* subtle gradient top line */
  box-shadow: 0 1px 0 0 rgba(61 191 151 / 0.15);
}
.nav__inner {
  display: flex;
  align-items: center;
  height: 68px;
  padding: 0 24px;
  max-width: 1160px;
  margin: 0 auto;
  gap: 8px;
}
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: 16px;
}
.logo__img {
  height: 28px;
  width: 28px;
  border-radius: 7px;
  display: block;
  object-fit: cover;
}

.nav__menu { display: flex; gap: 2px; flex: 1; }
.nav__link {
  padding: 6px 12px;
  color: var(--text-2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--r-sm);
  transition: all var(--ease);
  position: relative;
}
.nav__link:hover { color: var(--text); background: var(--surface); }

.nav__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.lang-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-2);
  padding: 5px 11px;
  border-radius: var(--r-sm);
  font-size: 11px;
  font-weight: 700;
  font-family: var(--ff-body);
  cursor: pointer;
  transition: all var(--ease);
  letter-spacing: 1px;
}
.lang-btn:hover { color: var(--text); border-color: var(--border-h); }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  width: 32px;
  height: 32px;
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--ease);
  transform-origin: center;
}
.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

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

.hero__blobs { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.15;
}
.blob--1 {
  width: 700px; height: 700px;
  background: var(--teal);
  top: -220px; right: -100px;
  animation: blobFloat 9s ease-in-out infinite;
}
.blob--2 {
  width: 500px; height: 500px;
  background: var(--blue);
  bottom: -120px; left: -140px;
  animation: blobFloat 12s ease-in-out infinite reverse;
}
.blob--3 {
  width: 340px; height: 340px;
  background: var(--teal-d);
  top: 50%; left: 42%;
  animation: blobFloat 14s ease-in-out infinite 2s;
}
@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(28px, -36px) scale(1.07); }
  66%       { transform: translate(-20px, 24px) scale(0.93); }
}

.hero__grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255 255 255 / 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255 255 255 / 0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black, transparent);
}

.hero__content { position: relative; max-width: 720px; }

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(61 191 151 / 0.08);
  border: 1px solid rgba(61 191 151 / 0.2);
  border-radius: 100px;
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 28px;
}
.dot {
  width: 6px; height: 6px;
  background: var(--teal);
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 6px var(--teal);
  animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px var(--teal); }
  50%       { opacity: 0.5; box-shadow: 0 0 12px var(--teal); }
}

.hero__heading {
  font-family: var(--ff-head);
  font-size: clamp(44px, 6.5vw, 82px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2.5px;
  margin-bottom: 24px;
}
.hero__body {
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 560px;
}
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 52px; }

.hero__stats { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.hero__stat  { display: flex; flex-direction: column; gap: 3px; }
.hero__stat strong {
  font-family: var(--ff-head);
  font-size: 30px;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__stat span {
  font-size: 11px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.hero__stat-sep { width: 1px; height: 44px; background: var(--border); }

.hero__scroll {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  text-decoration: none;
}
.scroll-mouse {
  width: 24px; height: 38px;
  border: 1.5px solid rgba(255 255 255 / 0.15);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 7px;
}
.scroll-mouse__wheel {
  width: 3px; height: 7px;
  background: rgba(255 255 255 / 0.3);
  border-radius: 2px;
  animation: wheelScroll 1.6s ease-in-out infinite;
}
@keyframes wheelScroll {
  0%   { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(8px); opacity: 0; }
}

/* === SECTIONS === */
.section      { padding: 100px 0; }
.section--alt { background: var(--bg-alt); }

/* === CARDS GRID === */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 28px;
  transition: all var(--ease-slow);
  position: relative;
  overflow: hidden;
}
/* gradient glow on card top edge on hover */
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--grad);
  opacity: 0;
  transition: opacity var(--ease-slow);
}
.card:hover::before { opacity: 1; }
.card:hover {
  background: var(--surface-h);
  border-color: transparent;
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0 0 0 / 0.5), 0 0 0 1px rgba(61 191 151 / 0.12);
}
.card__icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, rgba(61 191 151 / 0.12), rgba(96 165 250 / 0.1));
  border: 1px solid rgba(61 191 151 / 0.2);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--teal);
}
.card h3 { font-family: var(--ff-head); font-size: 17px; font-weight: 600; margin-bottom: 10px; }
.card p  { font-size: 14px; color: var(--text-2); line-height: 1.65; margin-bottom: 20px; }

.card__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.card__tags span {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  background: linear-gradient(135deg, rgba(61 191 151 / 0.1), rgba(96 165 250 / 0.08));
  border: 1px solid rgba(61 191 151 / 0.2);
  border-radius: 100px;
  color: var(--teal);
}

/* === EXPERTISE === */
.expertise-layout { display: grid; grid-template-columns: 1fr 1.6fr; gap: 72px; align-items: start; }

.expertise-bio__badge { display: flex; gap: 8px; margin-bottom: 24px; }
.badge-letter {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.5px;
  font-family: var(--ff-head);
}
.badge-letter.android { background: rgba(61 220 132 / 0.12); border: 1px solid rgba(61 220 132 / 0.25); color: #3ddc84; }
.badge-letter.kotlin  { background: rgba(127 82 255 / 0.12); border: 1px solid rgba(127 82 255 / 0.25); color: #7f52ff; }
.badge-letter.compose {
  background: linear-gradient(135deg, rgba(61 191 151 / 0.12), rgba(96 165 250 / 0.1));
  border: 1px solid rgba(61 191 151 / 0.25);
  color: var(--teal);
  font-size: 11px;
}

.expertise-bio h3 { font-family: var(--ff-head); font-size: 26px; font-weight: 700; margin-bottom: 12px; }
.expertise-bio p  { font-size: 15px; color: var(--text-2); line-height: 1.75; margin-bottom: 20px; }
.expertise-bio__highlight {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(61 191 151 / 0.07), rgba(96 165 250 / 0.05));
  border: 1px solid rgba(61 191 151 / 0.18);
  border-radius: var(--r-sm);
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
}
.expertise-bio__highlight svg { flex-shrink: 0; margin-top: 1px; color: var(--teal); }

.skill-group { margin-bottom: 24px; }
.skill-group h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 10px;
}
.skill-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-tag {
  font-size: 13px;
  font-weight: 500;
  padding: 5px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-2);
  transition: all var(--ease);
  cursor: default;
}
.skill-tag:hover { border-color: var(--teal); color: var(--teal); }
.skill-tag--accent {
  background: linear-gradient(135deg, rgba(61 191 151 / 0.1), rgba(96 165 250 / 0.07));
  border-color: rgba(61 191 151 / 0.25);
  color: var(--teal);
}

/* === ABOUT === */
.about-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-text .section-tag { display: block; }
.about-text h2 {
  font-family: var(--ff-head);
  font-size: clamp(24px, 3.5vw, 38px);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.2;
  margin-bottom: 18px;
}
.about-text p { font-size: 15px; color: var(--text-2); line-height: 1.75; margin-bottom: 14px; }

.about-values { display: flex; flex-direction: column; gap: 14px; margin-top: 28px; }
.value-item   { display: flex; align-items: flex-start; gap: 12px; }
.value-icon {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, rgba(61 191 151 / 0.12), rgba(96 165 250 / 0.1));
  border: 1px solid rgba(61 191 151 / 0.22);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--teal);
}
.value-item strong { display: block; font-size: 14px; font-weight: 600; margin-bottom: 1px; }
.value-item span   { font-size: 13px; color: var(--text-3); }

.founder-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 36px;
  position: relative;
  overflow: hidden;
}
/* top gradient line always visible on founder card */
.founder-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--grad);
}
.founder-card__avatar {
  width: 68px; height: 68px;
  border-radius: 50%;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-head);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}
.founder-card__info h4    { font-family: var(--ff-head); font-size: 18px; font-weight: 700; margin-bottom: 3px; }
.founder-card__info span  { font-size: 13px; color: var(--text-2); display: block; margin-bottom: 20px; }
.founder-card blockquote {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.75;
  border-left: 2px solid var(--teal);
  padding-left: 16px;
  font-style: italic;
  margin-bottom: 20px;
}
.founder-card__badges { display: flex; flex-wrap: wrap; gap: 6px; }
.founder-card__badges span {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  background: linear-gradient(135deg, rgba(61 191 151 / 0.1), rgba(96 165 250 / 0.07));
  border: 1px solid rgba(61 191 151 / 0.2);
  border-radius: 100px;
  color: var(--teal);
}

/* === CONTACT === */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.contact-info .section-tag { display: block; }
.contact-info h2 {
  font-family: var(--ff-head);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.2;
  margin-bottom: 14px;
}
.contact-info > p { font-size: 15px; color: var(--text-2); line-height: 1.75; margin-bottom: 28px; }

.contact-channel {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  text-decoration: none;
  transition: all var(--ease);
  max-width: 320px;
}
.contact-channel:hover { background: var(--surface-h); border-color: rgba(61 191 151 / 0.3); }
.contact-channel__icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, rgba(61 191 151 / 0.12), rgba(96 165 250 / 0.1));
  border: 1px solid rgba(61 191 151 / 0.22);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  flex-shrink: 0;
}
.contact-channel span   { display: block; font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 2px; }
.contact-channel strong { font-size: 14px; color: var(--text); }

/* === FORM === */
.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 32px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 500; color: var(--text-2); margin-bottom: 7px; }
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  background: rgba(255 255 255 / 0.04);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text);
  font-size: 14px;
  font-family: var(--ff-body);
  transition: border-color var(--ease), box-shadow var(--ease);
  outline: none;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(61 191 151 / 0.12);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-3); }
.form-note { text-align: center; font-size: 12px; color: var(--text-3); margin-top: 10px; }

/* === FOOTER === */
.footer { border-top: 1px solid var(--border); padding: 60px 0 32px; }
.footer__top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer__brand p { font-size: 14px; color: var(--text-3); max-width: 280px; line-height: 1.65; margin-top: 12px; }
.footer__col { display: flex; flex-direction: column; gap: 8px; }
.footer__col strong { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-3); margin-bottom: 4px; }
.footer__col a { font-size: 14px; color: var(--text-2); text-decoration: none; transition: color var(--ease); }
.footer__col a:hover { color: var(--teal); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-3);
}

/* === REVEAL === */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .expertise-layout { grid-template-columns: 1fr; gap: 44px; }
  .about-layout     { grid-template-columns: 1fr; gap: 48px; }
  .contact-layout   { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }

  .nav__menu {
    display: none;
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: rgba(8 12 16 / 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 16px;
    flex-direction: column;
    border-bottom: 1px solid var(--border);
    gap: 4px;
  }
  .nav__menu.open   { display: flex; }
  .nav__link        { padding: 12px 16px; }
  .nav .btn-primary { display: none; }
  .burger           { display: flex; }

  .hero__heading  { letter-spacing: -1.5px; }
  .hero__stats    { gap: 16px; }
  .cards-grid     { grid-template-columns: 1fr; }
  .form-row       { grid-template-columns: 1fr; }
  .footer__top    { grid-template-columns: 1fr; gap: 28px; }
  .footer__bottom { flex-direction: column; gap: 6px; text-align: center; }
}

@media (max-width: 480px) {
  .hero__ctas     { flex-direction: column; }
  .hero__ctas .btn { width: 100%; justify-content: center; }
  .contact-channel { max-width: 100%; }
}
