/* ===========================================================
   Kahom — IT Company Website
   Stylesheet
   =========================================================== */

:root {
  --bg:        #0b1020;
  --bg-soft:   #0f1730;
  --surface:   #ffffff;
  --surface-2: #f5f7fc;
  --ink:       #0d1330;
  --ink-soft:  #4a5578;
  --line:      #e5e9f5;
  --brand:     #4f6bff;
  --brand-2:   #7c5cff;
  --brand-3:   #22d3ee;
  --accent:    #14e0a3;
  --white:     #ffffff;
  --radius:    18px;
  --radius-sm: 12px;
  --shadow:    0 20px 45px -20px rgba(28, 42, 100, .35);
  --shadow-sm: 0 8px 24px -12px rgba(28, 42, 100, .25);
  --maxw:      1160px;
  --ease:      cubic-bezier(.22,.61,.36,1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, .brand-name { font-family: 'Sora', system-ui, sans-serif; line-height: 1.15; }

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
}

.grad-text {
  background: linear-gradient(100deg, var(--brand), var(--brand-2) 55%, var(--brand-3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 600; font-size: .95rem;
  padding: 11px 20px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(100deg, var(--brand), var(--brand-2));
  color: var(--white);
  box-shadow: 0 12px 24px -10px rgba(79,107,255,.8);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 30px -12px rgba(79,107,255,.9); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-lg { padding: 14px 26px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; gap: 20px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.brand-mark { width: 34px; height: 34px; }
.brand-name { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { font-weight: 500; color: var(--ink-soft); transition: color .2s; position: relative; }
.nav-links a:hover { color: var(--ink); }
.nav-links a::after {
  content:''; position:absolute; left:0; bottom:-6px; height:2px; width:0;
  background: var(--brand); transition: width .25s var(--ease);
}
.nav-links a:hover::after { width: 100%; }
.nav-cta { margin-left: 4px; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; margin-left: auto; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu { display: none; flex-direction: column; gap: 4px; padding: 0 22px; overflow: hidden; max-height: 0; transition: max-height .35s var(--ease); }
.mobile-menu.open { max-height: 420px; padding-bottom: 18px; }
.mobile-menu a { padding: 12px 4px; border-bottom: 1px solid var(--line); color: var(--ink-soft); font-weight: 500; }
.mobile-menu a.btn { border: none; color: #fff; margin-top: 10px; justify-content: center; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-top: 40px; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 60% at 85% 10%, rgba(124,92,255,.18), transparent 60%),
    radial-gradient(50% 50% at 10% 20%, rgba(34,211,238,.16), transparent 60%),
    linear-gradient(180deg, #f7f9ff, #ffffff 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding-block: 40px 30px; }
.hero-copy h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 800; letter-spacing: -.03em; margin-bottom: 20px; }
.lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 34em; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-trust { display: flex; gap: 34px; flex-wrap: wrap; }
.trust-item { display: flex; flex-direction: column; }
.trust-item strong { font-family: 'Sora'; font-size: 1.6rem; font-weight: 800; }
.trust-item span { font-size: .85rem; color: var(--ink-soft); }
.hero-art { position: relative; }
.hero-art img { width: 100%; filter: drop-shadow(0 30px 50px rgba(40,60,140,.22)); animation: float 6s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface-2); padding: 14px 0; margin-top: 20px; }
.marquee-track { display: flex; gap: 22px; width: max-content; animation: scroll 26s linear infinite; }
.marquee-track span { font-weight: 600; color: var(--ink-soft); font-size: 1.05rem; white-space: nowrap; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 92px 0; }
.section-alt { background: var(--surface-2); }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 54px; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: 14px; }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }

/* ---------- Service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
  position: relative; overflow: hidden;
}
.card::before {
  content:''; position:absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2), var(--brand-3));
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card-icon { width: 58px; height: 58px; margin-bottom: 18px; }
.card h3 { font-size: 1.22rem; margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: .96rem; margin-bottom: 16px; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: .75rem; font-weight: 600; color: var(--brand); background: rgba(79,107,255,.1); padding: 4px 10px; border-radius: 999px; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 50px; align-items: center; }
.about-art img { width: 100%; filter: drop-shadow(0 24px 44px rgba(40,60,140,.18)); }
.about-copy h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-bottom: 18px; letter-spacing: -.02em; }
.about-copy > p { color: var(--ink-soft); margin-bottom: 24px; font-size: 1.02rem; }
.check-list { list-style: none; display: grid; gap: 12px; margin-bottom: 28px; }
.check-list li { position: relative; padding-left: 34px; color: var(--ink); font-weight: 500; }
.check-list li::before {
  content: '✓'; position: absolute; left: 0; top: 0;
  width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff;
  font-size: .8rem; display: grid; place-items: center; font-weight: 700;
}

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 24px; position: relative; transition: transform .3s var(--ease), box-shadow .3s; }
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow-sm); }
.step-num { font-family: 'Sora'; font-weight: 800; font-size: 2.4rem; letter-spacing: -.04em; background: linear-gradient(120deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 12px; }
.step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: .93rem; }

/* ---------- Stats banner ---------- */
.stats-banner { background: linear-gradient(115deg, #0d1330, #1b2352 55%, #3a2b7a); color: #fff; padding: 64px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat strong { display: block; font-family: 'Sora'; font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 800; background: linear-gradient(120deg, #fff, var(--brand-3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: #b9c2e8; font-size: .95rem; }

/* ---------- Industries ---------- */
.industries { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.industry { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 26px 12px; text-align: center; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.industry:hover { transform: translateY(-5px); box-shadow: var(--shadow-sm); border-color: var(--brand); }
.industry img { width: 46px; height: 46px; margin: 0 auto 12px; }
.industry span { font-size: .88rem; font-weight: 600; color: var(--ink-soft); }

/* ---------- Testimonial ---------- */
.testimonial-section { padding-top: 0; }
.testimonial { max-width: 780px; margin: 0 auto; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 48px 40px; box-shadow: var(--shadow); position: relative; }
.quote-mark { width: 54px; margin: 0 auto 18px; opacity: .9; }
.testimonial blockquote { font-family: 'Sora'; font-size: clamp(1.15rem, 2.4vw, 1.6rem); font-weight: 600; line-height: 1.5; letter-spacing: -.01em; margin-bottom: 26px; }
.testimonial figcaption { display: inline-flex; align-items: center; gap: 12px; }
.avatar { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-weight: 700; display: grid; place-items: center; }
.testimonial figcaption span:last-child { display: flex; flex-direction: column; text-align: left; }
.testimonial figcaption small { color: var(--ink-soft); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px; align-items: start; }
.contact-copy h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-bottom: 16px; letter-spacing: -.02em; }
.contact-copy > p { color: var(--ink-soft); margin-bottom: 26px; }
.contact-list { list-style: none; display: grid; gap: 16px; }
.contact-list li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.contact-list img { width: 26px; height: 26px; }
.contact-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; color: var(--ink); background: var(--surface-2); transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(79,107,255,.15); background: #fff;
}
.field textarea { resize: vertical; }
.form-note { margin-top: 12px; font-size: .9rem; font-weight: 600; color: var(--accent); min-height: 1.2em; text-align: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg); color: #cfd6f0; padding: 64px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 34px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-brand .brand-name { color: #fff; }
.footer-brand p { color: #8b95bd; margin-top: 12px; max-width: 26em; font-size: .95rem; }
.footer-col h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.footer-col a { display: block; color: #8b95bd; padding: 5px 0; font-size: .92rem; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 22px; color: #6f7aa6; font-size: .85rem; flex-wrap: wrap; gap: 10px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 460px; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-art { max-width: 420px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .industries { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 34px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .mobile-menu { display: flex; }
  .section { padding: 66px 0; }
  .cards, .steps, .industries { grid-template-columns: 1fr; }
  .hero-trust { gap: 22px; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
