:root {
  --bg-dark: #0a0a0f;
  --bg-card: rgba(20, 20, 28, 0.8);
  --text-primary: #f0f0f5;
  --text-secondary: #b0b0c0;
  --accent: #ff6a00;
  --accent-glow: rgba(255, 106, 0, 0.3);
  --border-glow: rgba(255, 106, 0, 0.4);
  --card-hover-bg: rgba(255, 106, 0, 0.08);
  --shadow-sm: 0 8px 20px rgba(0,0,0,0.3);
}

body.light {
  --bg-dark: #f4f6fc;
  --bg-card: rgba(255, 255, 255, 0.9);
  --text-primary: #111216;
  --text-secondary: #2c2e3a;
  --accent: #ff6a00;
  --accent-glow: rgba(255, 106, 0, 0.2);
  --card-hover-bg: rgba(255, 106, 0, 0.05);
  --shadow-sm: 0 8px 20px rgba(0,0,0,0.08);
}

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

body {
  background: var(--bg-dark);
  color: var(--text-primary);
  font-family: 'Inter', system-ui, 'Segoe UI', sans-serif;
  transition: background 0.3s ease, color 0.2s;
  line-height: 1.5;
  overflow-x: hidden;
}

.bg-masterpiece {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background: radial-gradient(circle at 30% 20%, rgba(255, 106, 0, 0.12), transparent 70%);
}

canvas#webglCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.6;
}

.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  flex-wrap: wrap;
  gap: 1rem;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 106, 0, 0.25);
  position: sticky;
  top: 0;
  background: rgba(var(--bg-dark), 0.65);
  z-index: 100;
}

.logo {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ff6a00, #ffaa44);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo span {
  font-weight: 400;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  color: var(--text-primary);
}

nav {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
}

nav a {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  transition: color 0.2s, transform 0.2s;
  position: relative;
}

nav a:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

nav a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -6px;
  left: 0;
  background: var(--accent);
  transition: width 0.3s;
}

nav a:hover::after {
  width: 100%;
}

.toggle {
  cursor: pointer;
  font-size: 1.2rem;
  background: rgba(255, 106, 0, 0.2);
  padding: 0.4rem 1rem;
  border-radius: 40px;
  transition: all 0.2s;
  border: 1px solid var(--accent);
  display: flex;
  align-items: center;
  gap: 6px;
}

.toggle:hover {
  background: var(--accent);
  color: #0a0a0f;
  transform: scale(1.02);
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 5rem 0 4rem;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  background: linear-gradient(135deg, #ffffff 70%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body.light .hero-content h1 {
  background: linear-gradient(135deg, #111216 60%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-content .highlight {
  color: var(--accent);
  background: none;
}

.hero-content p {
  font-size: 1.2rem;
  margin: 1.5rem 0;
  color: var(--text-secondary);
}

.cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  padding: 0.8rem 2rem;
  border-radius: 40px;
  font-weight: 600;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background: var(--accent);
  color: #0a0a0f;
  box-shadow: 0 8px 20px rgba(255, 106, 0, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(255, 106, 0, 0.5);
  filter: brightness(1.05);
}

.btn-outline {
  border: 2px solid var(--accent);
  background: transparent;
  color: var(--text-primary);
}

.btn-outline:hover {
  background: var(--accent);
  color: #0a0a0f;
  transform: translateY(-3px);
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

.stat span {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
}

.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border-radius: 2rem;
  border: 1px solid rgba(255, 106, 0, 0.2);
  transition: all 0.3s ease;
  padding: 1.8rem;
}

.glass-card:hover {
  background: var(--card-hover-bg);
  border-color: var(--accent);
  box-shadow: 0 12px 28px -8px var(--accent-glow);
  transform: translateY(-2px);
}

.section-title {
  font-size: 2.3rem;
  font-weight: 700;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
  color: var(--text-primary);
}

.section-title:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--accent);
  border-radius: 4px;
}

.grid-3cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.service-icon {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.tech-badge {
  background: rgba(255, 106, 0, 0.12);
  padding: 0.6rem 1.3rem;
  border-radius: 60px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: 0.2s;
  border-left: 3px solid var(--accent);
  color: var(--text-primary);
}

.tech-badge i {
  margin-right: 8px;
  color: var(--accent);
}

.tech-badge:hover {
  background: var(--accent);
  color: #0a0a0f;
  transform: scale(1.02);
}

.tech-badge:hover i {
  color: #0a0a0f;
}

.differentials-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.2rem;
}

.diff-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
}

.diff-item i {
  color: var(--accent);
  font-size: 1.3rem;
}

form input, form textarea, form select {
  width: 100%;
  padding: 1rem;
  margin-top: 0.8rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 106, 0, 0.4);
  border-radius: 1rem;
  color: var(--text-primary);
  transition: 0.2s;
}

body.light form input, body.light form textarea, body.light form select {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(255, 106, 0, 0.5);
}

form input:focus, form textarea:focus, form select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

button[type="submit"] {
  background: var(--accent);
  border: none;
  font-weight: bold;
  margin-top: 1.5rem;
  transition: all 0.3s;
  color: #111;
}

button[type="submit"]:hover {
  transform: translateY(-3px);
  filter: brightness(1.08);
  box-shadow: 0 10px 20px rgba(255, 106, 0, 0.4);
}

footer {
  text-align: center;
  padding: 3rem 0;
  border-top: 1px solid rgba(255, 106, 0, 0.2);
  margin-top: 2rem;
  color: var(--text-secondary);
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .section-title:after {
    left: 50%;
    transform: translateX(-50%);
  }
  .section-title {
    text-align: center;
    display: block;
  }
  .container {
    padding: 0 1.2rem;
  }
  .hero-content h1 {
    font-size: 2.5rem;
  }
}

body.light .hero-content p,
body.light .stat,
body.light .diff-item,
body.light .glass-card p,
body.light .glass-card h3,
body.light .section-title {
  color: #1a1c2c;
}

body.light .hero-stats .stat span {
  color: var(--accent);
}

body.light .logo span {
  color: #1a1c2c;
}