/* =============================================
   OPTIRUSAI
   Style: Bold Modern Dark
   — heavy type, sharp geometry, glow accents,
     grain texture, aggressive hover states
   ============================================= */

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

:root {
  --bg:        #07070e;
  --bg-alt:    #0b0b18;
  --surface:   rgba(255,255,255,0.045);
  --surface-h: rgba(255,255,255,0.075);
  --border:    rgba(255,255,255,0.07);
  --border-h:  rgba(139,92,246,0.6);

  --purple:    #8b5cf6;
  --purple-l:  #a78bfa;
  --purple-d:  rgba(139,92,246,0.14);
  --cyan:      #22d3ee;
  --glow-p:    rgba(139,92,246,0.4);
  --glow-c:    rgba(34,211,238,0.25);

  --white:     #f0f0ff;
  --muted:     #7878a0;
  --muted-d:   #35355a;

  --font:      'Inter', system-ui, sans-serif;
  --r:         10px;
  --max:       1140px;
  --nav-h:     68px;
}

html { scroll-behavior: smooth; font-size: 16px; }

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

:focus-visible {
  outline: 2px solid var(--purple-l);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── GRAIN TEXTURE ─────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

/* ── AMBIENT GLOW ──────────────────────────── */
body::after {
  content: '';
  position: fixed;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse at center,
    rgba(139,92,246,0.1) 0%,
    rgba(34,211,238,0.04) 40%,
    transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* =============================================
   LAYOUT
   ============================================= */

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

.section { padding: 6rem 0; }
.section--alt { background: rgba(255,255,255,0.018); }

.section__intro { max-width: 620px; margin-bottom: 3.5rem; }
.section__desc { color: var(--muted); font-size: 1.05rem; margin-top: 0.75rem; line-height: 1.75; }

.label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--purple-l);
  margin-bottom: 1rem;
}
.label::before {
  content: '';
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--purple-l);
}

h1, h2, h3 { letter-spacing: -0.025em; line-height: 1.12; }
h2 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; }

.grad {
  background: linear-gradient(120deg, var(--purple-l) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* =============================================
   BUTTONS
   ============================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  border-radius: var(--r);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
  min-height: 44px;
  padding: 0.6rem 1.4rem;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.01em;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,0.15) 50%, transparent 65%);
  transform: translateX(-100%);
  transition: transform 500ms ease;
}
.btn:hover::after { transform: translateX(100%); }

.btn--primary {
  background: linear-gradient(135deg, var(--purple) 0%, #7c3aed 100%);
  color: #fff;
  box-shadow: 0 4px 24px rgba(139,92,246,0.35), inset 0 1px 0 rgba(255,255,255,0.15);
}
.btn--primary:hover, .btn--primary:focus-visible {
  box-shadow: 0 8px 40px rgba(139,92,246,0.55), inset 0 1px 0 rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--purple-l);
  border: 1.5px solid rgba(139,92,246,0.45);
}
.btn--outline:hover, .btn--outline:focus-visible {
  background: var(--purple-d);
  border-color: var(--purple-l);
  box-shadow: 0 0 20px rgba(139,92,246,0.2);
}

.btn--ghost {
  background: transparent;
  color: var(--muted);
  border: 1.5px solid var(--border);
}
.btn--ghost:hover, .btn--ghost:focus-visible {
  color: var(--white);
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05);
}

.btn--lg { padding: 0.85rem 2rem; font-size: 1rem; min-height: 52px; }
.btn--full { width: 100%; }

/* =============================================
   NAV
   ============================================= */

.nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(7,7,14,0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  transition: background 300ms;
}
.nav.scrolled { background: rgba(7,7,14,0.92); }

.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.04em;
  flex-shrink: 0;
}
.logo span { color: var(--purple-l); }

.nav__links { list-style: none; display: flex; gap: 2rem; }
.nav__links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 150ms;
}
.nav__links a:hover { color: var(--white); }

.nav__cta { display: flex; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}
.burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 220ms ease;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  display: none;
  flex-direction: column;
  padding: 1rem 1.5rem 1.5rem;
  background: rgba(7,7,14,0.97);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  gap: 0.25rem;
}
.nav__mobile a {
  color: var(--muted);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
  transition: color 150ms;
}
.nav__mobile a:last-child { border: none; margin-top: 0.75rem; }
.nav__mobile a:hover { color: var(--white); }
.nav__mobile.open { display: flex; }

/* =============================================
   HERO
   ============================================= */

.hero {
  padding-top: calc(var(--nav-h) + 5.5rem);
  padding-bottom: 8rem;
  position: relative;
  overflow: hidden;
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}
.hero__orb--1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(139,92,246,0.2) 0%, transparent 65%);
  top: -200px; left: -150px;
  animation: drift 12s ease-in-out infinite;
}
.hero__orb--2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(34,211,238,0.12) 0%, transparent 65%);
  bottom: -100px; right: -50px;
  animation: drift 10s ease-in-out infinite reverse;
}
@keyframes drift {
  0%, 100% { transform: translate(0, 0); }
  33%       { transform: translate(30px, -20px); }
  66%       { transform: translate(-20px, 30px); }
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  background: rgba(139,92,246,0.08);
  border: 1px solid rgba(139,92,246,0.2);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-bottom: 2.5rem;
  letter-spacing: 0.02em;
}

.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px rgba(34,197,94,0.9);
  animation: pulse 2.5s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 10px rgba(34,197,94,0.9); }
  50%       { box-shadow: 0 0 4px rgba(34,197,94,0.4); }
}

h1 {
  font-size: clamp(2.8rem, 6.5vw, 5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-bottom: 1.75rem;
}

.hero__sub {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 540px;
  line-height: 1.8;
  margin-bottom: 2.75rem;
}

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

/* ── HERO DIVIDER LINE ─ */
.hero__line {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139,92,246,0.4), rgba(34,211,238,0.3), transparent);
}

/* =============================================
   PROBLEMS
   ============================================= */

.problems {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
}

.problem-item {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  background: var(--bg);
  padding: 1.75rem;
  transition: background 200ms;
}
.problem-item:hover { background: var(--bg-alt); }

.problem-item__icon {
  width: 42px; height: 42px;
  background: rgba(248,113,113,0.08);
  border: 1px solid rgba(248,113,113,0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f87171;
  flex-shrink: 0;
}

.problem-item h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.3rem; }
.problem-item p  { font-size: 0.875rem; color: var(--muted); line-height: 1.6; }

/* =============================================
   SERVICES
   ============================================= */

.services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
}

.service-card {
  background: var(--bg-alt);
  padding: 2.25rem;
  position: relative;
  transition: background 220ms ease;
  overflow: hidden;
}

/* left accent bar */
.service-card::before {
  content: '';
  position: absolute;
  left: 0; top: 10%; bottom: 10%;
  width: 2px;
  background: linear-gradient(to bottom, var(--purple), var(--cyan));
  opacity: 0;
  transition: opacity 250ms ease;
  border-radius: 2px;
}

/* top glow */
.service-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 80px;
  background: radial-gradient(ellipse at 30% 0%, rgba(139,92,246,0.12) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 300ms ease;
}

.service-card:hover {
  background: rgba(139,92,246,0.05);
}
.service-card:hover::before { opacity: 1; }
.service-card:hover::after  { opacity: 1; }

.service-card__icon {
  width: 44px; height: 44px;
  background: var(--purple-d);
  border: 1px solid rgba(139,92,246,0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple-l);
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 0.625rem;
  position: relative;
  z-index: 1;
}

.service-card > p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.72;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}

.service-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  position: relative;
  z-index: 1;
}
.service-card ul li {
  font-size: 0.84rem;
  color: var(--muted);
  padding-left: 1.1rem;
  position: relative;
}
.service-card ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--purple-l);
  font-weight: 700;
  font-size: 0.75rem;
}

/* =============================================
   ABOUT
   ============================================= */

.about { max-width: 700px; }

.about__text h2 { margin-bottom: 1.25rem; }
.about__text > p {
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.about__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.75rem;
}
.tag {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--purple-l);
  background: var(--purple-d);
  border: 1px solid rgba(139,92,246,0.22);
  padding: 0.3rem 0.875rem;
  border-radius: 6px;
  letter-spacing: 0.01em;
}

/* =============================================
   URGENCY
   ============================================= */

.urgency-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 4rem;
  align-items: start;
}

.urgency-main h2 { margin-bottom: 1.25rem; }
.urgency-main > p {
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}
.urgency-main > p:last-of-type { margin-bottom: 2rem; }

.guarantee-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 2rem;
  position: relative;
  overflow: hidden;
}
.guarantee-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
}
.guarantee-box::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(139,92,246,0.1) 0%, transparent 70%);
}

.guarantee-box__icon {
  width: 50px; height: 50px;
  background: var(--purple-d);
  border: 1px solid rgba(139,92,246,0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple-l);
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}
.guarantee-box h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.guarantee-box p  { font-size: 0.9rem; color: var(--muted); line-height: 1.72; position: relative; z-index: 1; }

/* =============================================
   CONTACT
   ============================================= */

.contact {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: start;
}

.contact__info h2 { margin-bottom: 1rem; }
.contact__info > p {
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.75;
  margin-bottom: 2rem;
}

.contact__details { display: flex; flex-direction: column; gap: 1rem; }

.contact__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 150ms;
}
.contact__item svg { color: var(--purple-l); flex-shrink: 0; }
.contact__item:hover { color: var(--white); }

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem;
}

.form-group { display: flex; flex-direction: column; gap: 0.45rem; }
.form-group label { font-size: 0.83rem; font-weight: 600; color: var(--muted); }

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,0.04);
  border: 1.5px solid var(--border);
  color: var(--white);
  font-family: var(--font);
  font-size: 0.97rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  outline: none;
  transition: border-color 180ms, box-shadow 180ms;
  width: 100%;
  min-height: 48px;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--muted-d); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(139,92,246,0.15);
}
.form-group input.error,
.form-group textarea.error { border-color: #f87171; }

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238b5cf6' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}
.form-group select option { background: #0f0f1e; }
.form-group textarea { resize: vertical; min-height: 120px; }

.form-error { font-size: 0.78rem; color: #f87171; min-height: 1em; }

.form-success {
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.3);
  color: #86efac;
  padding: 0.875rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  text-align: center;
}

/* =============================================
   FOOTER
   ============================================= */

.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer__ps { font-size: 0.875rem; color: var(--muted); }
.footer__ps a { color: var(--purple-l); text-decoration: none; }
.footer__ps a:hover { text-decoration: underline; }
.footer__copy { font-size: 0.82rem; color: var(--muted-d); }

/* =============================================
   REVEAL — stagger per skill rules (30–50ms)
   ============================================= */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s cubic-bezier(0.16,1,0.3,1),
              transform 0.6s cubic-bezier(0.16,1,0.3,1);
}
.reveal.in { opacity: 1; transform: none; }

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 960px) {
  .problems { grid-template-columns: 1fr; }
  .urgency-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 768px) {
  .nav__links, .nav__cta { display: none; }
  .burger { display: flex; }
  .services { grid-template-columns: 1fr; }
  .section { padding: 4rem 0; }
  h1 { font-size: clamp(2.4rem, 9vw, 3.8rem); }
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .footer__inner { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
