@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --bg: #F8F9FC;
  --bg2: #EDEEF2;
  --bg3: #FFFFFF;
  --accent: #0052CC;
  --accent2: #6B21FF;
  --text: #0F1117;
  --text-muted: #5A6072;
  --border: rgba(0,0,0,0.08);
  --card: #FFFFFF;
  --gradient: linear-gradient(135deg, #0052CC, #6B21FF);
  --shadow: 0 4px 24px rgba(0,82,204,0.12);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* SCROLLBAR */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }

/* TYPOGRAPHY */
h1, h2, h3, h4 { font-family: 'Space Mono', monospace; font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* LAYOUT */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.section { padding: 100px 0; }

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0.8rem 0;
  background: #FFFFFF;
  border-bottom: 2px solid var(--border);
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
}

nav .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.nav-logo img { height: 60px; }

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.3s;
}

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

.nav-cta {
  background: var(--gradient);
  color: white !important;
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  font-weight: 600 !important;
  transition: opacity 0.3s, transform 0.3s !important;
}

.nav-cta:hover { opacity: 0.85; transform: translateY(-1px); color: white !important; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { width: 25px; height: 2px; background: var(--text); transition: 0.3s; }

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -20%, rgba(0,82,204,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(107,33,255,0.06) 0%, transparent 60%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0,82,204,0.08);
  border: 1px solid rgba(0,82,204,0.2);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.6s ease both;
}

.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero h1 {
  animation: fadeInUp 0.6s ease 0.1s both;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 2.5rem;
  animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease 0.3s both;
}

.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 4rem;
  animation: fadeInUp 0.6s ease 0.4s both;
}

.hero-stat .num {
  font-family: 'Syne', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stat .label { font-size: 0.85rem; color: var(--text-muted); }

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--gradient);
  color: white;
  box-shadow: 0 0 30px rgba(0,212,255,0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 50px rgba(0,212,255,0.5);
}

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

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* SECTION TITLES */
.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-title { margin-bottom: 1rem; }
.section-subtitle { color: var(--text-muted); max-width: 600px; font-size: 1.1rem; margin-bottom: 3rem; }

/* SERVICES */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.service-card:hover { border-color: rgba(0,212,255,0.3); transform: translateY(-4px); }
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 52px; height: 52px;
  background: rgba(0,82,204,0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
}

.service-card h3 { margin-bottom: 0.8rem; font-size: 1.2rem; }
.service-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; }

.service-card .learn-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 1.2rem;
  text-decoration: none;
  transition: gap 0.3s;
}

.service-card .learn-more:hover { gap: 0.8rem; }

/* WHY US */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.why-items { display: flex; flex-direction: column; gap: 1.5rem; }

.why-item {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.3s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.why-item:hover { border-color: rgba(0,82,204,0.3); }

.why-icon {
  width: 44px; height: 44px;
  background: rgba(0,82,204,0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.why-item h4 { margin-bottom: 0.3rem; font-size: 1rem; }
.why-item p { color: var(--text-muted); font-size: 0.9rem; }

.why-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.why-card-main {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem;
  width: 100%;
  max-width: 380px;
}

.why-card-main h3 { margin-bottom: 1.5rem; color: var(--accent); }

.metric {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border);
}

.metric:last-child { border: none; }
.metric-label { color: var(--text-muted); font-size: 0.9rem; }
.metric-value { font-weight: 700; color: var(--accent); font-family: 'Syne', sans-serif; }

/* PROCESS */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 30px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: var(--border);
}

.step { text-align: center; position: relative; }

.step-num {
  width: 60px; height: 60px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  margin: 0 auto 1.2rem;
  position: relative;
  z-index: 1;
}

.step h4 { margin-bottom: 0.5rem; }
.step p { color: var(--text-muted); font-size: 0.9rem; }

/* TESTIMONIALS */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  transition: border-color 0.3s;
}

.testimonial-card:hover { border-color: rgba(0,212,255,0.3); }

.stars { color: #FFD700; margin-bottom: 1rem; font-size: 0.9rem; }
.testimonial-card p { color: var(--text-muted); font-style: italic; margin-bottom: 1.2rem; line-height: 1.7; }

.testimonial-author { display: flex; align-items: center; gap: 0.8rem; }
.author-avatar {
  width: 40px; height: 40px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}
.author-name { font-weight: 600; font-size: 0.95rem; }
.author-role { color: var(--text-muted); font-size: 0.8rem; }

/* BLOG */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.blog-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}

.blog-card:hover { transform: translateY(-4px); border-color: rgba(0,212,255,0.3); }

.blog-card-img {
  height: 180px;
  background: linear-gradient(135deg, rgba(0,212,255,0.15), rgba(123,47,255,0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.blog-card-body { padding: 1.5rem; }
.blog-tag {
  display: inline-block;
  background: rgba(0,212,255,0.1);
  color: var(--accent);
  padding: 0.2rem 0.8rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.blog-card h3 { font-size: 1.1rem; margin-bottom: 0.6rem; line-height: 1.4; }
.blog-card p { color: var(--text-muted); font-size: 0.9rem; }
.blog-date { color: var(--text-muted); font-size: 0.8rem; margin-top: 1rem; }

/* CONTACT */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h2 { margin-bottom: 1rem; }
.contact-info p { color: var(--text-muted); margin-bottom: 2rem; }

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

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.contact-item-icon {
  width: 40px; height: 40px;
  background: rgba(0,82,204,0.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.contact-item-text span { display: block; }
.contact-item-text .ci-label { color: var(--text-muted); font-size: 0.8rem; }
.contact-item-text .ci-value { font-weight: 600; font-size: 0.95rem; }

/* FORM */
.contact-form {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.5rem; font-weight: 500; }

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.3s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,82,204,0.1);
}

.form-group select option { background: var(--bg3); color: var(--text); }
.form-group textarea { resize: vertical; min-height: 130px; }

.form-submit { width: 100%; justify-content: center; font-size: 1rem; padding: 1rem; }

.form-success {
  display: none;
  text-align: center;
  padding: 2rem;
  color: var(--accent);
}

/* FOOTER */
footer {
  background: #0F1117;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand img { height: 40px; margin-bottom: 1rem; filter: brightness(0) invert(1); }
.footer-brand p { color: rgba(255,255,255,0.45); font-size: 0.9rem; line-height: 1.7; }

.footer-col h4 { font-size: 0.9rem; margin-bottom: 1.2rem; color: rgba(255,255,255,0.9); font-family: 'Space Mono', monospace; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col ul li a { color: rgba(255,255,255,0.45); text-decoration: none; font-size: 0.9rem; transition: color 0.3s; }
.footer-col ul li a:hover { color: white; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.3);
  font-size: 0.85rem;
}

/* ANIMATIONS */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 70px; left: 0; right: 0;
    background: var(--bg2);
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border);
  }
  .hero-stats { flex-wrap: wrap; gap: 1.5rem; }
  .why-grid { grid-template-columns: 1fr; }
  .why-visual { display: none; }
  .process-steps { grid-template-columns: 1fr 1fr; }
  .process-steps::before { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .process-steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* TOAST NOTIFICATIONS */
.toast-container {
  position: fixed;
  top: 90px;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  max-width: 380px;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  animation: toastIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  position: relative;
  overflow: hidden;
  background: white;
  border: 1px solid var(--border);
}

.toast::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
}

.toast.toast-success::before { background: #22C55E; }
.toast.toast-error::before { background: #EF4444; }
.toast.toast-info::before { background: var(--accent); }

.toast-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 0.1rem; }

.toast-content { flex: 1; }
.toast-title { font-weight: 700; font-size: 0.95rem; color: var(--text); margin-bottom: 0.2rem; font-family: 'Space Mono', monospace; }
.toast-message { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }

.toast-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0;
  flex-shrink: 0;
  line-height: 1;
}

.toast-close:hover { color: var(--text); }

.toast.toast-hiding {
  animation: toastOut 0.3s ease forwards;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(100%); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateX(0); max-height: 200px; margin: 0; padding: 1.2rem 1.5rem; }
  to { opacity: 0; transform: translateX(100%); max-height: 0; margin: 0; padding: 0; }
}
