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

:root {
  --navy:   #080d1a;
  --dark:   #0f1629;
  --card:   #131d30;
  --card2:  #192236;
  --border: #1e2d47;
  --accent: #3b82f6;
  --accent2:#6366f1;
  --green:  #22c55e;
  --purple: #8b5cf6;
  --text:   #e2e8f0;
  --muted:  #94a3b8;
  --dim:    #4a5568;
  --success:#22c55e;
  --error:  #ef4444;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--navy);
  color: var(--text);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

/* ─── NAV ─── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 13, 26, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}

nav ul { list-style: none; display: flex; gap: 2rem; }
nav ul a { color: var(--muted); font-size: 0.95rem; transition: color 0.2s; }
nav ul a:hover { color: var(--text); }

/* ─── HERO ─── */
#hero {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem 1.5rem 4rem;
  position: relative;
  overflow: hidden;
}

/* Dot grid */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(59,130,246,0.09) 1.5px, transparent 1.5px);
  background-size: 32px 32px;
  pointer-events: none;
}

/* Glow orbs */
#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 10% 20%, rgba(59,130,246,0.1) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 90% 80%, rgba(99,102,241,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1100px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* ─── HERO TEXT ─── */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.25);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #60a5fa;
  margin-bottom: 1.25rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 1.25rem;
  background: linear-gradient(140deg, #f1f5f9 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text p {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 460px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-pill {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 4px 13px;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
}

/* ─── SCROLL HINT ─── */
.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--dim);
  transition: color 0.2s;
  z-index: 1;
  animation: bounce 2.5s ease-in-out infinite;
}
.scroll-hint:hover { color: var(--muted); }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(7px); }
}

/* ─── PHONE MOCKUP ─── */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-wrap {
  position: relative;
  padding: 20px 80px;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

.phone {
  width: 178px;
  background: #080e1c;
  border: 2px solid rgba(255,255,255,0.11);
  border-radius: 38px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 0 0 7px rgba(19,29,48,0.9),
    0 0 0 9px rgba(255,255,255,0.04),
    0 40px 80px rgba(0,0,0,0.6);
  animation: float 5s ease-in-out infinite;
}

.phone-top {
  height: 28px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background: #080e1c;
  flex-shrink: 0;
}

.phone-notch {
  width: 68px;
  height: 20px;
  background: #0d1424;
  border: 1.5px solid rgba(255,255,255,0.08);
  border-top: none;
  border-radius: 0 0 14px 14px;
}

.phone-screen {
  flex: 1;
  padding: 8px 10px 4px;
  overflow: hidden;
  min-height: 310px;
}

.phone-home {
  height: 22px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}
.phone-home::after {
  content: '';
  width: 64px;
  height: 4px;
  background: rgba(255,255,255,0.18);
  border-radius: 2px;
}

/* ─── MOCK APP UI ─── */
.mock-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.mock-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  flex-shrink: 0;
}

.mock-topbar-lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.mock-line {
  height: 7px;
  background: rgba(255,255,255,0.2);
  border-radius: 4px;
}
.mock-line.dim   { background: rgba(255,255,255,0.09); }
.mock-line.light { background: rgba(255,255,255,0.4); }
.mock-line.w75   { width: 75%; }
.mock-line.w65   { width: 65%; }
.mock-line.w60   { width: 60%; }
.mock-line.w50   { width: 50%; }
.mock-line.w45   { width: 45%; }
.mock-line.w40   { width: 40%; }
.mock-line.w70   { width: 70%; }
.mock-line.mb8   { margin-bottom: 8px; }

.mock-card {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  border-radius: 12px;
  padding: 11px 10px;
  margin-bottom: 8px;
}

.mock-chip {
  width: 54px;
  height: 17px;
  background: rgba(255,255,255,0.22);
  border-radius: 6px;
  margin-top: 8px;
}

.mock-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 8px;
}

.mock-stat {
  height: 38px;
  background: rgba(255,255,255,0.05);
  border-radius: 9px;
  border: 1px solid rgba(255,255,255,0.07);
}

.mock-divider {
  width: 40%;
  height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  margin-bottom: 8px;
}

.mock-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  padding: 7px 8px;
  margin-bottom: 5px;
  border: 1px solid rgba(255,255,255,0.06);
}

.mock-row-lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.mock-dot.blue   { background: var(--accent); }
.mock-dot.purple { background: var(--purple); }
.mock-dot.green  { background: var(--green); }

/* ─── FLOATING BADGES ─── */
.float-tag {
  position: absolute;
  background: rgba(8,13,26,0.92);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 7px 13px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  animation: float 5s ease-in-out infinite;
}

.tag-1 {
  top: 55px; right: -5px;
  color: #a78bfa;
  border-color: rgba(167,139,250,0.25);
  animation-delay: -1.8s;
}
.tag-2 {
  top: 165px; left: -5px;
  color: var(--accent);
  border-color: rgba(59,130,246,0.25);
  animation-delay: -3.2s;
}
.tag-3 {
  bottom: 75px; right: 5px;
  color: #34d399;
  border-color: rgba(52,211,153,0.25);
  animation-delay: -0.6s;
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0.8rem 1.75rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(59,130,246,0.3);
}
.btn:hover { background: #2563eb; transform: translateY(-1px); box-shadow: 0 6px 24px rgba(59,130,246,0.4); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn-ghost {
  display: inline-block;
  background: transparent;
  color: var(--muted);
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.btn-ghost:hover { color: var(--text); border-color: rgba(255,255,255,0.25); }

/* ─── SECTIONS ─── */
section { padding: 5rem 1.5rem; }
.container { max-width: 1100px; margin: 0 auto; }

section h2 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-sub {
  text-align: center;
  color: var(--muted);
  margin-bottom: 3rem;
}

/* ─── SERVICE CARDS ─── */
#services { background: var(--dark); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: var(--accent); transform: translateY(-3px); }

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}
.card-icon.blue   { background: rgba(59,130,246,0.1);  border: 1px solid rgba(59,130,246,0.2);  color: #3b82f6; }
.card-icon.green  { background: rgba(34,197,94,0.1);   border: 1px solid rgba(34,197,94,0.2);   color: #22c55e; }
.card-icon.purple { background: rgba(139,92,246,0.1);  border: 1px solid rgba(139,92,246,0.2);  color: #a78bfa; }

.card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.6rem; }
.card p  { color: var(--muted); font-size: 0.93rem; line-height: 1.6; }

/* ─── APPS ─── */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 420px;
  margin: 0 auto;
}

.app-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  position: relative;
  transition: border-color 0.2s, transform 0.2s;
}
.app-card:hover { border-color: var(--accent); transform: translateY(-3px); }

.app-badge {
  position: absolute;
  top: 1rem; right: 1rem;
  background: rgba(59,130,246,0.12);
  color: var(--accent);
  border: 1px solid rgba(59,130,246,0.28);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.app-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.2);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.app-card h3   { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.75rem; }
.app-card p    { color: var(--muted); font-size: 0.93rem; margin-bottom: 1rem; }
.app-platform  {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3px 12px;
}

/* ─── CONTACT ─── */
#contact { background: var(--dark); }

form { max-width: 560px; margin: 0 auto; }
.form-group { margin-bottom: 1.25rem; }

label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s;
  outline: none;
}
input:focus, textarea:focus { border-color: var(--accent); }
input::placeholder, textarea::placeholder { color: var(--dim); }
textarea { resize: vertical; min-height: 130px; }

#form-status { margin-top: 1rem; font-size: 0.9rem; min-height: 1.2rem; }
#form-status.success { color: var(--success); }
#form-status.error   { color: var(--error); }

/* ─── FOOTER ─── */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo { font-size: 1rem; }
footer p { color: var(--muted); font-size: 0.85rem; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero-text p { max-width: 100%; }
}

@media (max-width: 600px) {
  section { padding: 3.5rem 1rem; }
  nav ul { gap: 1.25rem; }
  .logo { font-size: 0.95rem; }
  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
}
