/* ── Design tokens ─────────────────────────────────────────── */
:root {
  --bg: #060B18;
  --bg-surface: #0C1326;
  --bg-card: #111C34;
  --bg-card-hover: #162240;
  --border: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(255, 255, 255, 0.14);
  --text: #E4EBF5;
  --text-secondary: #8897B8;
  --text-muted: #5A6B8A;
  --blue: #4F8EFF;
  --purple: #8B5CF6;
  --green: #10B981;
  --amber: #F59E0B;
  --rose: #F43F5E;
  --gradient: linear-gradient(135deg, var(--blue), var(--purple));
  --radius: 18px;
  --radius-sm: 10px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.3);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.6);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* ── Utilities ──────────────────────────────────────────────── */
.container {
  width: min(1180px, 100%);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 60px);
}

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

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 24px rgba(79, 142, 255, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(79, 142, 255, 0.5);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--blue);
  border: 1.5px solid rgba(79, 142, 255, 0.4);
  padding: 12px 24px;
}
.btn-outline:hover {
  background: rgba(79, 142, 255, 0.08);
  border-color: var(--blue);
}
.btn-full { width: 100%; justify-content: center; }

/* ── Navigation ─────────────────────────────────────────────── */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 0;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), backdrop-filter 0.4s;
}
.nav.scrolled {
  background: rgba(6, 11, 24, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  width: min(1180px, 100%);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 60px);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text);
  transition: opacity 0.2s;
}
.logo:hover { opacity: 0.85; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links a {
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-cta {
  background: var(--gradient) !important;
  color: #fff !important;
  padding: 9px 20px !important;
  border-radius: 100px !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 16px rgba(79, 142, 255, 0.3);
  transition: transform 0.2s, box-shadow 0.2s !important;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(79, 142, 255, 0.45) !important; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.2s;
}
.burger:hover { background: rgba(255,255,255,0.07); }
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg);
  background-image: radial-gradient(rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 36px 36px;
}

.blobs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.45;
}
.b1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #3D6FEF 0%, transparent 70%);
  top: -180px; right: -120px;
  animation: float1 12s ease-in-out infinite;
}
.b2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #7C3AED 0%, transparent 70%);
  bottom: -150px; left: -100px;
  animation: float2 15s ease-in-out infinite;
}
.b3 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, #1D4FD8 0%, transparent 70%);
  top: 40%; left: 45%;
  animation: float3 10s ease-in-out infinite;
  opacity: 0.25;
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 100px clamp(20px, 5vw, 60px) 80px;
  max-width: 860px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 16px;
  margin-bottom: 32px;
  backdrop-filter: blur(8px);
}
.badge-dot {
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
  animation: pulse 2.5s ease-out infinite;
}

.hero-title {
  font-size: clamp(44px, 7vw, 88px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  color: var(--text);
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 36px;
  backdrop-filter: blur(8px);
}
.stat { text-align: center; }
.stat strong {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}
.stat span { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; }
.stat-div {
  width: 1px; height: 40px;
  background: var(--border);
}

.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
}
.scroll-hint:hover { color: var(--text-secondary); }
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
  animation: scrollAnim 2s ease-in-out infinite;
}

/* ── About ──────────────────────────────────────────────────── */
.about {
  padding: 120px 0;
  position: relative;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-top: 40px;
}
.about-text h2 {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 24px;
}
.about-text p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-size: 1.05rem;
  line-height: 1.75;
}
.about-text .btn { margin-top: 8px; }

.founder-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.founder-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient);
  opacity: 0.04;
  pointer-events: none;
}
.founder-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  margin: 0 auto 20px;
  box-shadow: 0 8px 24px rgba(79, 142, 255, 0.35);
}
.founder-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.founder-title {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.founder-details {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}
.founder-detail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}
.detail-label {
  color: var(--text-muted);
  font-weight: 500;
}

/* ── Services ───────────────────────────────────────────────── */
.services {
  padding: 120px 0;
  background: var(--bg-surface);
  position: relative;
}
.services::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
}
.services-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 56px;
  max-width: 480px;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}
.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.service-card:hover {
  border-color: rgba(79, 142, 255, 0.35);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.service-card:hover::after { opacity: 0.04; }
.service-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, rgba(79,142,255,0.15), rgba(139,92,246,0.15));
  border: 1px solid rgba(79,142,255,0.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--blue);
  transition: background 0.3s;
}
.service-card:hover .service-icon { background: linear-gradient(135deg, rgba(79,142,255,0.25), rgba(139,92,246,0.25)); }
.service-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}
.service-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ── Portfolio ──────────────────────────────────────────────── */
.portfolio {
  padding: 120px 0;
}
.portfolio h2 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 52px;
  max-width: 560px;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}
.app-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}
.app-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.app-icon-wrap {
  position: relative;
  padding: 24px 24px 0;
}
.app-icon {
  width: 72px; height: 72px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}
.app-body { padding: 16px 24px 24px; flex: 1; display: flex; flex-direction: column; }
.app-cat {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 10px;
  width: fit-content;
}
.app-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.3;
}
.app-sub {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  flex: 1;
  margin-bottom: 16px;
}
.app-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue);
  transition: gap 0.2s;
}
.app-card:hover .app-link { gap: 10px; }

.portfolio-cta { text-align: center; }

/* ── Contact ────────────────────────────────────────────────── */
.contact {
  padding: 120px 0;
  background: var(--bg-surface);
  position: relative;
}
.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-info h2 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 20px;
}
.contact-sub {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 36px;
}
.contact-items { display: flex; flex-direction: column; gap: 16px; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  transition: color 0.2s;
}
a.contact-item:hover { color: var(--text); }
.contact-icon {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--blue);
  transition: background 0.2s, border-color 0.2s;
}
a.contact-item:hover .contact-icon {
  background: rgba(79, 142, 255, 0.1);
  border-color: rgba(79, 142, 255, 0.3);
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.5;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  outline: none;
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  background: rgba(79, 142, 255, 0.05);
  box-shadow: 0 0 0 3px rgba(79, 142, 255, 0.12);
}
.form-note {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--green);
  text-align: center;
  min-height: 1.2em;
}

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.03em; }
.footer-copy { font-size: 0.8rem; color: var(--text-muted); }
.footer-links {
  display: flex;
  gap: 20px;
}
.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }

/* ── Keyframe animations ────────────────────────────────────── */
@keyframes float1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(-40px, 30px) scale(1.05); }
  66%       { transform: translate(20px, -20px) scale(0.97); }
}
@keyframes float2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(50px, -30px) scale(1.08); }
  66%       { transform: translate(-20px, 20px) scale(0.95); }
}
@keyframes float3 {
  0%, 100% { transform: translate(0, 0); }
  50%       { transform: translate(-30px, 40px); }
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
  70%  { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
@keyframes scrollAnim {
  0%, 100% { opacity: 1; transform: scaleY(1); transform-origin: top; }
  50%       { opacity: 0.3; transform: scaleY(0.5); }
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { gap: 48px; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    inset-inline: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(6, 11, 24, 0.97);
    backdrop-filter: blur(20px);
    padding: 16px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; border-radius: 10px; }
  .nav-cta { border-radius: 10px !important; text-align: center; }
  .burger { display: flex; }

  .about-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }

  .services-grid { grid-template-columns: 1fr; gap: 16px; }

  .hero-stats { gap: 16px; padding: 16px 24px; }
  .stat-div { display: none; }

  .scroll-hint { display: none; }

  .founder-card { padding: 28px; }

  .footer-inner { flex-direction: column; text-align: center; align-items: center; }
  .footer-links { justify-content: center; }

  .contact-form { padding: 28px 20px; }
}

@media (max-width: 480px) {
  .hero-btns { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 320px; justify-content: center; }
  .portfolio-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .app-icon-wrap { padding: 16px 16px 0; }
  .app-icon { width: 56px; height: 56px; }
  .app-body { padding: 12px 16px 16px; }
}
