/* ====== VARIABLES ====== */
:root {
  --primary: #0a0a0a;
  --primary-light: #1a1a2e;
  --accent: #6c5ce7;
  --accent-light: #a29bfe;
  --accent-glow: rgba(108, 92, 231, 0.15);
  --bg: #fafafa;
  --bg-dark: #0a0a0a;
  --bg-card: #111118;
  --white: #ffffff;
  --text: #1a1a2e;
  --text-secondary: #64648b;
  --text-light: #9595b2;
  --text-on-dark: #e0e0e8;
  --border: #e8e8f0;
  --border-dark: #222233;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.08);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ====== RESET ====== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text); background: var(--white);
  line-height: 1.6; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
ul { list-style: none; }

/* ====== UTILITIES ====== */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.section { padding: 120px 0; }
.section-dark { background: var(--bg-dark); color: var(--text-on-dark); }
.section-header { text-align: center; max-width: 600px; margin: 0 auto 64px; }
.section-label {
  display: inline-block; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 3px;
  color: var(--accent); margin-bottom: 16px;
}
.section-dark .section-label { color: var(--accent-light); }
.section-header h2 { font-size: 2.4rem; font-weight: 800; margin-bottom: 16px; line-height: 1.15; letter-spacing: -0.02em; }
.section-header p { color: var(--text-secondary); font-size: 1.1rem; }
.section-dark .section-header p { color: var(--text-on-dark); opacity: 0.7; }

/* ====== BUTTONS ====== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; font-size: 15px; font-weight: 600;
  border-radius: 10px; border: none; cursor: pointer;
  transition: var(--transition); font-family: inherit;
}
.btn-primary {
  background: var(--accent); color: white;
}
.btn-primary:hover {
  background: var(--accent-light); transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(108, 92, 231, 0.3);
}
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--border);
}
.hero .btn-ghost { color: white; border-color: rgba(255,255,255,0.25); }
.btn-ghost:hover { background: rgba(255,255,255,0.08); }
.btn-lg { padding: 16px 36px; font-size: 16px; }
.btn-block { width: 100%; justify-content: center; }

/* ====== NAVIGATION ====== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: transparent; transition: var(--transition); padding: 16px 0;
}
.nav.scrolled {
  background: rgba(10,10,10,0.95); backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.05); padding: 10px 0;
}
.nav-container {
  max-width: 1140px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-brand { display: flex; align-items: center; gap: 10px; color: white; }
.brand-icon {
  width: 36px; height: 36px; background: var(--accent); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px; color: white;
}
.brand-name { font-weight: 700; font-size: 18px; color: white; }
.brand-accent { color: var(--accent-light); }
.nav-menu { display: flex; align-items: center; gap: 32px; }
.nav-menu a { color: rgba(255,255,255,0.7); font-size: 14px; font-weight: 500; transition: var(--transition); }
.nav-menu a:hover { color: white; }
.nav-cta {
  background: var(--accent) !important; color: white !important;
  padding: 8px 20px !important; border-radius: 8px;
}
.nav-cta:hover { background: var(--accent-light) !important; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: white;
  margin: 5px 0; transition: var(--transition); border-radius: 2px;
}

/* ====== HERO ====== */
.hero {
  position: relative; min-height: 100vh; display: flex;
  align-items: center; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
  z-index: 0;
}
.hero-bg::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 20%, rgba(108,92,231,0.12) 0%, transparent 60%);
}
.hero-content {
  position: relative; z-index: 1; color: white; max-width: 720px; padding-top: 80px;
}
.hero-badge {
  display: inline-block; background: rgba(108,92,231,0.15);
  padding: 6px 16px; border-radius: 50px; font-size: 13px;
  font-weight: 600; margin-bottom: 28px; color: var(--accent-light);
  border: 1px solid rgba(108,92,231,0.25);
}
.hero h1 {
  font-size: clamp(2.8rem, 5.5vw, 4rem); font-weight: 900;
  line-height: 1.08; margin-bottom: 24px; letter-spacing: -0.03em;
}
.text-gradient {
  background: linear-gradient(135deg, var(--accent-light), #74b9ff);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 1.15rem; line-height: 1.7; opacity: 0.7;
  margin-bottom: 40px; max-width: 520px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 64px; }
.hero-stats { display: flex; align-items: center; gap: 32px; }
.hero-stat { text-align: center; }
.hero-stat-number { display: block; font-size: 1.8rem; font-weight: 800; }
.hero-stat-label { font-size: 0.8rem; opacity: 0.5; text-transform: uppercase; letter-spacing: 1px; }
.hero-stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,0.1); }

/* ====== PROBLEM ====== */
.problem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.problem-content h2 { font-size: 2rem; margin-bottom: 16px; line-height: 1.2; }
.problem-content p { color: var(--text-secondary); font-size: 1.05rem; }
.problem-cards { display: flex; flex-direction: column; gap: 16px; }
.problem-card {
  display: flex; gap: 16px; padding: 20px; border-radius: var(--radius);
  border: 1px solid var(--border); transition: var(--transition);
}
.problem-card:hover { border-color: #e74c3c; box-shadow: var(--shadow-sm); }
.problem-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.problem-icon-red { background: #fdeaea; color: #e74c3c; }
.problem-card strong { display: block; font-size: 0.95rem; margin-bottom: 2px; }
.problem-card p { font-size: 0.85rem; color: var(--text-light); margin: 0; }

/* ====== SERVICES ====== */
.section-dark .services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.section-dark .service-card {
  background: var(--bg-card); border-radius: var(--radius-lg);
  padding: 40px 32px; border: 1px solid var(--border-dark); transition: var(--transition);
}
.section-dark .service-card:hover {
  border-color: var(--accent); transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(108, 92, 231, 0.1);
}
.service-number {
  font-size: 3rem; font-weight: 900; color: var(--accent);
  opacity: 0.3; line-height: 1; margin-bottom: 20px;
}
.section-dark .service-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 12px; color: white; }
.section-dark .service-card p { font-size: 0.92rem; color: var(--text-on-dark); opacity: 0.6; line-height: 1.7; }

/* ====== PROCESS ====== */
.process-grid {
  max-width: 640px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: stretch;
}
.process-step { display: flex; gap: 24px; align-items: flex-start; }
.process-number {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent); color: white; font-weight: 800;
  font-size: 1.1rem; display: flex; align-items: center;
  justify-content: center; flex-shrink: 0;
}
.process-content h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.process-content p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.7; }
.process-connector {
  width: 2px; height: 40px; background: var(--border);
  margin-left: 23px; flex-shrink: 0;
}

/* ====== PORTFOLIO ====== */
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.portfolio-card {
  background: var(--bg-card); border-radius: var(--radius-lg);
  overflow: hidden; border: 1px solid var(--border-dark);
  transition: var(--transition); display: block;
}
.portfolio-card:hover {
  transform: translateY(-6px); border-color: var(--accent);
  box-shadow: 0 16px 48px rgba(108,92,231,0.12);
}
.portfolio-preview {
  height: 160px; display: flex; align-items: flex-end;
  padding: 16px; position: relative;
}
.portfolio-badge {
  background: rgba(255,255,255,0.12); backdrop-filter: blur(4px);
  padding: 4px 12px; border-radius: 50px; font-size: 0.75rem;
  font-weight: 600; color: white;
}
.portfolio-info { padding: 20px 24px 24px; }
.portfolio-info h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; color: white; }
.portfolio-info p { font-size: 0.85rem; color: var(--text-on-dark); opacity: 0.6; margin-bottom: 12px; line-height: 1.5; }
.portfolio-link { font-size: 0.85rem; font-weight: 600; color: var(--accent-light); }

/* ====== PRICING ====== */
.pricing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 800px; margin: 0 auto; }
.pricing-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 40px 36px; border: 1px solid var(--border);
  transition: var(--transition); position: relative;
}
.pricing-card:hover { box-shadow: var(--shadow-lg); }
.pricing-featured {
  border-color: var(--accent); border-width: 2px;
  box-shadow: 0 8px 32px rgba(108,92,231,0.1);
}
.pricing-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: white; padding: 4px 16px;
  border-radius: 50px; font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
}
.pricing-header { text-align: center; margin-bottom: 32px; }
.pricing-header h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 16px; }
.pricing-price { display: flex; align-items: baseline; justify-content: center; gap: 4px; }
.pricing-amount { font-size: 3.5rem; font-weight: 900; line-height: 1; color: var(--text); }
.pricing-currency { font-size: 1.5rem; font-weight: 700; color: var(--text-secondary); }
.pricing-plus { font-size: 1rem; font-weight: 600; color: var(--accent); margin-left: 8px; }
.pricing-period { font-size: 0.85rem; color: var(--text-light); margin-top: 8px; }
.pricing-features { margin-bottom: 32px; }
.pricing-features li {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.92rem; padding: 8px 0; color: var(--text-secondary);
}
.pricing-features svg { color: var(--accent); flex-shrink: 0; }
.pricing-note {
  display: flex; align-items: center; gap: 12px;
  max-width: 600px; margin: 40px auto 0;
  padding: 16px 24px; background: var(--accent-glow);
  border-radius: var(--radius); border: 1px solid rgba(108,92,231,0.2);
}
.pricing-note svg { flex-shrink: 0; color: var(--accent); }
.pricing-note p { font-size: 0.9rem; color: var(--text-secondary); }

/* ====== CONTACT ====== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.section-dark .contact-content h2 { color: white; font-size: 2rem; margin-bottom: 16px; }
.section-dark .contact-content p { opacity: 0.7; font-size: 1.05rem; margin-bottom: 32px; }
.contact-methods { display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; }
.contact-method {
  display: flex; align-items: center; gap: 14px;
  padding: 16px; border-radius: var(--radius);
  border: 1px solid var(--border-dark); transition: var(--transition);
}
.contact-method:hover { border-color: var(--accent); }
.contact-method svg { color: var(--accent-light); flex-shrink: 0; }
.contact-method strong { display: block; font-size: 0.9rem; color: white; }
.contact-method span { font-size: 0.85rem; color: var(--text-on-dark); opacity: 0.6; }
.contact-location {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.9rem; color: var(--text-on-dark); opacity: 0.5;
}
.contact-form-wrap {
  background: var(--bg-card); border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg); padding: 40px;
}
.contact-form .form-group { margin-bottom: 16px; }
.contact-form label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: var(--text-on-dark); }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; padding: 12px 16px; border: 1px solid var(--border-dark);
  border-radius: 10px; font-size: 15px; font-family: inherit;
  transition: var(--transition); background: rgba(255,255,255,0.04); color: white;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(255,255,255,0.25); }
.contact-form select { color: rgba(255,255,255,0.6); }
.contact-form select option { background: var(--bg-dark); color: white; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(108,92,231,0.15); background: rgba(255,255,255,0.06);
}
.form-note { display: block; text-align: center; color: var(--text-light); margin-top: 12px; font-size: 0.85rem; }

/* ====== FOOTER ====== */
.footer { background: var(--bg-dark); border-top: 1px solid var(--border-dark); padding: 48px 0 32px; }
.footer-content { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand p { font-size: 0.85rem; color: var(--text-on-dark); opacity: 0.5; margin-left: 8px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 0.85rem; color: var(--text-on-dark); opacity: 0.5; transition: var(--transition); }
.footer-links a:hover { opacity: 1; color: var(--accent-light); }
.footer-bottom { border-top: 1px solid var(--border-dark); padding-top: 24px; text-align: center; font-size: 0.8rem; color: var(--text-on-dark); opacity: 0.3; }

/* ====== ANIMATIONS ====== */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ====== RESPONSIVE ====== */
@media (max-width: 1024px) {
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 80px 0; }
  .section-header { margin-bottom: 48px; }
  .section-header h2 { font-size: 1.8rem; }

  .nav-toggle { display: block; }
  .nav-menu {
    position: fixed; top: 0; right: -100%; width: 280px; height: 100vh;
    background: var(--bg-dark); flex-direction: column; padding: 80px 32px 32px;
    gap: 0; box-shadow: -10px 0 40px rgba(0,0,0,0.3); transition: var(--transition);
  }
  .nav-menu.open { right: 0; }
  .nav-menu a { padding: 14px 0; border-bottom: 1px solid var(--border-dark); font-size: 16px; width: 100%; color: white !important; opacity: 0.8 !important; }
  .nav-cta { border: none !important; background: var(--accent) !important; text-align: center; border-radius: 10px !important; margin-top: 16px; padding: 14px 20px !important; opacity: 1 !important; }

  .hero { min-height: auto; padding: 130px 0 80px; }
  .hero h1 { font-size: 2.2rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-stats { flex-direction: column; gap: 16px; align-items: flex-start; }
  .hero-stat-divider { display: none; }
  .hero-stat { text-align: left; }

  .problem-grid { grid-template-columns: 1fr; gap: 40px; }
  .section-dark .services-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }

  .footer-content { flex-direction: column; gap: 20px; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .section-dark .services-grid { grid-template-columns: 1fr; }
}
