:root {
  --bg: #0e0e11;
  --bg-2: #121217;
  --accent: #ff6b9a;
  --accent-2: #ffbaba;
  --text: #eaeaf0;
  --muted: #a1a1b3;
  --card-bg: #16161d;
  --glass: rgba(255,255,255,0.03);
  --transition: 0.4s;
  --radius: 12px;
}

.light-theme {
  --bg: #f6f7fb;
  --bg-2: #ffffff;
  --accent: #ff6b9a;
  --text: #0b0b10;
  --muted: #5b5b6a;
  --card-bg: #ffffff;
  --glass: rgba(11,11,16,0.03);
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  font-family: 'Segoe UI', Roboto, system-ui, -apple-system, "Helvetica Neue", Arial;
  background: radial-gradient(1200px 600px at 10% 10%, rgba(255,107,154,0.06), transparent), var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* NAVIGATION */
.nav {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  position: absolute;
  z-index: 5;
  top: 0;
  left: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: inherit;
}

.logo {
  width: 44px;
  transition: transform var(--transition);
}

.brand-name {
  font-weight: 600;
  letter-spacing: 0.2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: all 0.3s ease;
}

.nav-link {
  color: var(--text);
  text-decoration: none;
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  transition: background 0.3s;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* MOBILE MENU */
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 4px;
  z-index: 6;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* THEME TOGGLE */
#theme-toggle {
  background: transparent;
  color: var(--text);
  border: 1px solid transparent;
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

#theme-toggle:hover {
  background: rgba(255, 255, 255, 0.02);
}

#theme-toggle:focus {
  outline: 2px solid var(--accent);
}

/* STICKY CTA */
.sticky-cta {
  position: fixed;
  top: 1rem;
  right: 2rem;
  z-index: 10;
  animation: slideIn 0.4s ease-out;
  display: flex;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* HERO */
.hero {
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: 3.5rem;
}

.hero-inner {
  width: 100%;
  max-width: 1100px;
  padding: 4rem 2rem;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.hero-left {
  flex: 1 1 420px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.title {
  font-size: 2.6rem;
  margin: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tagline {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0;
  max-width: 46rem;
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.btn {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: white;
  padding: 0.6rem 0.9rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  border: none;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  display: inline-block;
}

.btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255, 107, 154, 0.3);
}

.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.05);
}

.mini-info {
  margin: 1rem 0 0;
  padding-left: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.95rem;
}

.mini-info li {
  margin: 0.5rem 0;
}

/* HERO RIGHT */
.hero-right {
  flex: 0 0 360px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.device {
  width: 100%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
  border-radius: 14px;
  padding: 1rem;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.screenshot-placeholder {
  width: 100%;
  height: 180px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--muted);
  border: 1px dashed rgba(255, 255, 255, 0.1);
}

.placeholder-icon {
  font-size: 2rem;
}

.screenshot-placeholder p {
  margin: 0;
  font-size: 0.95rem;
}

.screenshot-placeholder small {
  font-size: 0.8rem;
  opacity: 0.7;
}

/* WAVE */
.wave {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 120px;
  background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTAsMTAgQzMwLDEyIDcwLDAgMTAwLDEwIEwwLDEwIiBmaWxsPSIjMTYxNjFkIi8+PC9zdmc+') repeat-x;
  background-size: cover;
  opacity: 0.6;
}

/* SECTIONS */
section {
  padding: 4rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

section h2 {
  color: var(--accent);
  margin-bottom: 1rem;
  text-align: center;
  font-size: 1.9rem;
  position: relative;
}

section h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--accent);
  margin: 0.5rem auto 0;
  border-radius: 2px;
}

p {
  color: var(--text);
  font-size: 1.03rem;
  text-align: center;
  max-width: 900px;
  margin: 1rem auto 0;
}

/* VALUE PROPS */
.value-props {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.value-prop-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
  padding: 1.5rem;
  border-radius: 12px;
  flex: 1 1 280px;
  max-width: 340px;
  text-align: center;
}

.value-prop-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.value-prop-card h3 {
  color: var(--accent);
  margin: 0.5rem 0;
}

.value-prop-card p {
  font-size: 0.95rem;
  margin: 0.5rem auto 0;
}

/* PROJECTS GRID */
.projects-grid {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 2rem;
}

.project-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
  border-radius: 12px;
  overflow: hidden;
  width: 340px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6);
}

.project-image {
  width: 100%;
  height: 200px;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-meta {
  padding: 1rem 1rem 0;
}

.project-meta h3 {
  margin: 0;
  color: var(--accent);
  font-size: 1.1rem;
}

.muted {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
}

.project-desc {
  padding: 0 1rem;
  margin: 0.75rem 0;
  color: var(--text);
  font-size: 0.95rem;
}

.project-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0 1rem;
  margin: 0.5rem 0;
}

.project-tags span {
  background: rgba(255, 107, 154, 0.15);
  color: var(--accent);
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
}

.project-link {
  padding: 1rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
  margin-top: auto;
  display: block;
}

.project-link:hover {
  color: var(--accent-2);
}

/* PROCESS SECTION */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.process-step {
  text-align: center;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.01);
  border-radius: 12px;
  border-left: 3px solid var(--accent);
}

.step-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.process-step h3 {
  color: var(--accent);
  margin: 0.5rem 0;
}

.process-step p {
  margin: 0.5rem auto 0;
  text-align: center;
  font-size: 0.95rem;
}

/* TECH STACK */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.stack-item {
  background: rgba(255, 255, 255, 0.01);
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  border: 1px solid rgba(255, 107, 154, 0.2);
}

.stack-item h4 {
  color: var(--accent);
  margin: 0 0 0.5rem 0;
}

.stack-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
}

/* FAQ */
.faq-container {
  max-width: 800px;
  margin: 2rem auto 0;
  text-align: left;
}

.faq-item {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item h3 {
  color: var(--accent);
  margin: 0 0 0.5rem 0;
  font-size: 1.05rem;
}

.faq-item p {
  margin: 0;
  color: var(--text);
  text-align: left;
  font-size: 0.95rem;
}

/* CONTACT FORM */
.contact-info {
  background: rgba(255, 255, 255, 0.02);
  padding: 1.5rem;
  border-radius: 10px;
  margin-bottom: 2rem;
  border-left: 3px solid var(--accent);
}

.contact-info p {
  margin: 0.75rem 0;
  text-align: left;
}

.contact-info a {
  color: var(--accent);
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.6rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--card-bg);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 107, 154, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--muted);
}

.form-hint {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

.form-status {
  padding: 0.75rem;
  border-radius: 8px;
  font-size: 0.9rem;
}

.form-success {
  background: rgba(100, 200, 100, 0.1);
  border: 1px solid rgba(100, 200, 100, 0.3);
  padding: 1.5rem;
  border-radius: 10px;
  text-align: center;
}

.form-success h3 {
  margin-top: 0;
  color: var(--accent);
}

/* FOOTER */
footer {
  text-align: center;
  padding: 2rem;
  color: var(--muted);
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--accent);
}

/* ANIMATIONS */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  .project-card,
  .logo,
  .btn {
    transition: none !important;
    transform: none !important;
  }

  .wave {
    animation: none !important;
  }
}

/* TABLET */
@media (max-width: 1024px) {
  .hero-inner {
    padding: 2.5rem 1.5rem;
  }

  .projects-grid {
    gap: 1rem;
  }

  .project-card {
    width: 300px;
  }
}

/* MOBILE */
@media (max-width: 880px) {
  .menu-toggle {
    display: flex;
  }

  .nav-actions {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    height: calc(100vh - 60px);
    background: var(--bg);
    flex-direction: column;
    justify-content: flex-start;
    padding: 1rem;
    gap: 0.5rem;
    z-index: 4;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  .nav-actions.active {
    transform: translateX(0);
  }

  .hero-inner {
    flex-direction: column-reverse;
    padding: 2rem 1.5rem;
    gap: 1.5rem;
  }

  .hero-right {
    width: 100%;
    flex: none;
  }

  .hero-left {
    align-items: flex-start;
    text-align: left;
  }

  .projects-grid {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .project-card {
    width: 100%;
    max-width: 100%;
  }

  .sticky-cta {
    right: 1rem;
    top: 60px;
  }

  .nav {
    padding: 0.75rem 1rem;
  }

  section {
    padding: 2.5rem 1.5rem;
  }

  .value-props {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .hero-inner {
    padding: 1.5rem 1rem;
  }

  .hero-ctas {
    flex-direction: column;
  }

  .hero-ctas .btn {
    width: 100%;
    text-align: center;
  }

  section {
    padding: 2rem 1rem;
  }

  .title {
    font-size: 1.8rem;
  }

  section h2 {
    font-size: 1.4rem;
  }

  .tagline {
    font-size: 0.95rem;
  }

  .sticky-cta {
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.5rem;
  }

  .sticky-cta .btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
  }

  .process-steps {
    grid-template-columns: 1fr;
  }

  .form-group input,
  .form-group textarea,
  .form-group select {
    font-size: 16px;
  }

  .nav {
    flex-wrap: wrap;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .title {
    font-size: 1.5rem;
  }

  .tagline {
    font-size: 0.9rem;
  }

  section h2 {
    font-size: 1.2rem;
  }

  p {
    font-size: 0.95rem;
  }

  .mini-info {
    font-size: 0.85rem;
  }
}