/* ============================================
   MAKINAP — Design System (Linear-inspired dark)
   ============================================ */

/* --- Variables --- */
:root {
  --bg-base:        #0a0a0b;
  --bg-surface:     #111113;
  --bg-elevated:    #18181c;
  --bg-hover:       #1f1f24;

  --border:         rgba(255,255,255,0.07);
  --border-strong:  rgba(255,255,255,0.12);

  --text-primary:   #f1f0ef;
  --text-secondary: #9b99a1;
  --text-muted:     #5c5a63;

  --accent:         #7c5cfc;
  --accent-light:   #9b7dff;
  --accent-glow:    rgba(124,92,252,0.35);

  --cyan:           #3dd9eb;
  --green:          #4ade80;
  --orange:         #fb923c;

  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --radius-xl:  24px;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --shadow-sm:  0 1px 3px rgba(0,0,0,.4), 0 1px 2px rgba(0,0,0,.3);
  --shadow-md:  0 4px 16px rgba(0,0,0,.5), 0 2px 6px rgba(0,0,0,.4);
  --shadow-lg:  0 12px 40px rgba(0,0,0,.6);

  --transition: 0.18s cubic-bezier(0.4,0,0.2,1);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font); background: var(--bg-base); color: var(--text-primary); line-height: 1.6; }
img, svg { display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button, input, select, textarea { font-family: inherit; }

/* --- Utility --- */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}
.gradient-text {
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 16px;
}
.section-desc {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 520px;
}
.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-header .section-desc { margin: 0 auto; }
.optional { color: var(--text-muted); font-size: 13px; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.btn-sm  { padding: 7px 14px; font-size: 13px; }
.btn-lg  { padding: 13px 28px; font-size: 16px; }
.btn-full { width: 100%; }
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-glow);
}
.btn-primary:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  box-shadow: 0 0 24px var(--accent-glow);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

/* ============================================
   NAV
   ============================================ */
.nav-wrapper {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10,10,11,.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  gap: 40px;
  height: 60px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 17px;
  flex-shrink: 0;
}
.logo-mark {
  width: 28px; height: 28px;
  background: var(--accent);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.logo-text { color: var(--text-primary); }
.nav-links {
  display: flex;
  gap: 32px;
  margin-left: auto;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--text-primary); }
.nav-cta { margin-left: 8px; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 160px 0 120px;
  text-align: center;
}
.hero-glow {
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 600px;
  background: radial-gradient(ellipse at center, var(--accent-glow) 0%, transparent 65%);
  pointer-events: none;
}
.hero-inner { position: relative; }
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 99px;
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-light);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.hero-title {
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.05;
  margin-bottom: 24px;
}
.hero-subtitle {
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.65;
}
.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 72px;
}
.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding: 16px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-surface);
}
.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.stat-value {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--text-primary);
}
.stat-label {
  font-size: 12px;
  color: var(--text-muted);
}
.hero-divider {
  width: 1px; height: 36px;
  background: var(--border-strong);
}

/* ============================================
   FEATURES
   ============================================ */
.features {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  opacity: 0;
  transition: opacity var(--transition);
}
.feature-card--erp::before   { background: linear-gradient(90deg, var(--accent), var(--accent-light)); }
.feature-card--cyber::before { background: linear-gradient(90deg, var(--cyan), #2dd4bf); }
.feature-card--web::before   { background: linear-gradient(90deg, var(--orange), #f59e0b); }

.feature-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.feature-card--erp   .feature-icon { color: var(--accent-light); }
.feature-card--cyber .feature-icon { color: var(--cyan); }
.feature-card--web   .feature-icon { color: var(--orange); }

.feature-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -.02em;
}
.feature-desc {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 20px;
}
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}
.feature-list li {
  font-size: 13.5px;
  color: var(--text-secondary);
  padding-left: 16px;
  position: relative;
}
.feature-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--text-muted);
  font-size: 11px;
  top: 1px;
}
.feature-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.testimonials-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(124,92,252,.05) 0%, transparent 70%);
  pointer-events: none;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  position: relative;
}
.testimonial-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.testimonial-card--featured {
  border-color: rgba(124,92,252,.4);
  background: linear-gradient(135deg, rgba(124,92,252,.08) 0%, var(--bg-surface) 60%);
  box-shadow: 0 0 40px rgba(124,92,252,.12);
}
.testimonial-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}
.testimonial-card--featured:hover {
  border-color: rgba(124,92,252,.6);
  box-shadow: 0 0 60px rgba(124,92,252,.2);
}
.stars { color: #fbbf24; font-size: 14px; letter-spacing: 2px; }
.testimonial-text {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.7;
  flex: 1;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.author-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.author-name  { font-size: 13.5px; font-weight: 600; }
.author-role  { font-size: 12px; color: var(--text-muted); }

/* ============================================
   CONTACT
   ============================================ */
.contact {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact-copy .section-title { max-width: 380px; }
.contact-perks {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
}
.contact-perks li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  color: var(--text-secondary);
}
.contact-perks svg { color: var(--green); flex-shrink: 0; }

/* Form */
.contact-form-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
}
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: .02em;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-base);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 14.5px;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #f87171;
  box-shadow: 0 0 0 3px rgba(248,113,113,.2);
}
.field-error {
  font-size: 12px;
  color: #f87171;
  min-height: 16px;
}
.form-group select {
  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 fill='%235c5a63' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}
.form-group select option { background: var(--bg-elevated); }

/* Submit button states */
.btn-loading { display: none; }
.btn.loading .btn-text   { display: none; }
.btn.loading .btn-loading { display: inline-flex; align-items: center; gap: 8px; }
.spin { animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-success {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(74,222,128,.3);
  background: rgba(74,222,128,.07);
  color: var(--green);
  font-size: 14px;
  font-weight: 500;
}
.form-success.show { display: flex; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  border-top: 1px solid var(--border);
  padding-top: 56px;
}
.footer-inner {
  display: flex;
  gap: 64px;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 40px;
}
.footer-tagline {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-top: 12px;
  max-width: 200px;
}
.footer-links { display: flex; gap: 48px; }
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.footer-col a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--text-primary); }
.footer-bottom {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--text-muted);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .features-grid,
  .testimonials-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 60px; left: 0; right: 0;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
  }
  .nav-links.open a {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 16px;
  }
  .footer-inner { flex-direction: column; gap: 32px; }
  .hero { padding: 120px 0 80px; }
}

@media (max-width: 560px) {
  .hero-meta { gap: 20px; padding: 14px 20px; }
  .contact-form-wrapper { padding: 24px 20px; }
}
