/* ===========================================================
   Fantasoft — business site
   AI Consulting · Software Publishing · Software Development
   Dark, flowing, white + orange. Built to be eye-catching.
   =========================================================== */

:root {
  --bg:        #0B0D11;
  --bg-2:      #0F1218;
  --card:      rgba(20,24,31,0.55);
  --card-solid:#14181F;
  --line:      rgba(255,255,255,0.09);
  --line-2:    rgba(255,255,255,0.16);
  --text:      #F6F8FB;
  --muted:     #A0A9B8;
  --muted-2:   #6B7480;
  --orange:    #F26419;
  --orange-2:  #FF7A2E;
  --orange-soft: rgba(242,100,25,0.12);
  --radius:    16px;
  --radius-sm: 11px;
  --maxw:      1120px;
  --nav-h:     74px;
  --font-display: 'Orbitron', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.62;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
::selection { background: rgba(242,100,25,0.32); color: #fff; }

.eyebrow {
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: linear-gradient(90deg, transparent, var(--orange)); }
.section-head .eyebrow::before { display: none; }

/* ===================== FLOWING BACKGROUND ===================== */
.site-bg {
  position: fixed; inset: 0; z-index: -2; overflow: hidden;
  background: radial-gradient(125% 85% at 50% -12%, #161b24 0%, #0b0d11 52%, #07090c 100%);
}
.orb { position: absolute; border-radius: 50%; filter: blur(95px); will-change: transform; }
.orb-1 {
  width: 640px; height: 640px; top: -180px; left: -130px;
  background: radial-gradient(circle, rgba(242,100,25,0.42), rgba(242,100,25,0) 68%);
  animation: drift1 26s var(--ease) infinite;
}
.orb-2 {
  width: 580px; height: 580px; bottom: -200px; right: -140px;
  background: radial-gradient(circle, rgba(255,122,46,0.30), rgba(255,122,46,0) 68%);
  animation: drift2 32s var(--ease) infinite;
}
.orb-3 {
  width: 520px; height: 520px; top: 34%; left: 42%;
  background: radial-gradient(circle, rgba(110,150,220,0.14), rgba(110,150,220,0) 70%);
  animation: drift3 40s var(--ease) infinite;
}
.bg-flow {
  position: absolute; inset: -6%; width: 112%; height: 112%; opacity: 0.6;
  filter: drop-shadow(0 0 12px rgba(242,100,25,0.22));
  animation: sway 34s ease-in-out infinite;
}
.flow-line { stroke-linecap: round; }
.bg-grain {
  position: absolute; inset: 0; opacity: 0.04; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.bg-vignette { position: absolute; inset: 0; background: radial-gradient(125% 95% at 50% 38%, transparent 42%, rgba(7,9,12,0.6) 100%); }

@keyframes drift1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(70px,46px) scale(1.1); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-56px,-34px) scale(1.12); } }
@keyframes drift3 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(40px,-30px) scale(1.14); } }
@keyframes sway   { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-1.6%,1.2%); } }

/* ===================== NAV ===================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(18px, 4vw, 52px);
  z-index: 100; border-bottom: 1px solid transparent;
  transition: background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s;
}
.nav.scrolled {
  background: rgba(9,11,15,0.7);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; }
.brand-logo { height: 34px; width: auto; display: block; filter: drop-shadow(0 2px 14px rgba(242,100,25,0.22)); transition: transform .3s var(--ease); }
.brand:hover .brand-logo { transform: translateY(-1px) scale(1.02); }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--muted); transition: color .2s ease; }
.nav-links a:hover { color: #fff; }
.nav-cta {
  color: #fff !important; background: var(--orange);
  padding: 10px 22px; border-radius: 999px; font-weight: 600 !important;
  box-shadow: 0 8px 24px -10px rgba(242,100,25,0.8);
  transition: background .2s ease, transform .18s var(--ease), box-shadow .2s ease;
}
.nav-cta:hover { background: var(--orange-2); transform: translateY(-2px); box-shadow: 0 12px 30px -8px rgba(242,100,25,0.85); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: .25s; }
.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); }

/* ===================== HERO ===================== */
.hero {
  position: relative; min-height: 92svh;
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: calc(var(--nav-h) + 40px) 20px 70px;
}
.hero-inner { position: relative; z-index: 1; max-width: 780px; }
.hero-mark {
  width: 104px; height: auto; margin: 0 auto 30px;
  filter: drop-shadow(0 10px 40px rgba(242,100,25,0.4));
  animation: floaty 6.5s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.hero-title { margin: 0 auto 22px; line-height: 0; }
.hero-wordmark {
  width: clamp(280px, 60vw, 620px);
  height: auto; display: block; margin: 0 auto;
  filter: drop-shadow(0 0 42px rgba(242,100,25,0.22));
}
.hero-sub {
  font-family: var(--font-display);
  font-size: clamp(12px, 1.9vw, 16px);
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 40px;
  text-transform: uppercase;
}
.hero-sub b { color: var(--orange); font-weight: 700; }

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 16px; font-family: var(--font-body);
  padding: 15px 30px; border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  transition: transform .18s var(--ease), background .2s ease, box-shadow .25s ease, border-color .2s ease;
}
.btn .arrow { font-style: normal; transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(5px); }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 12px 34px -12px rgba(242,100,25,0.85); }
.btn-primary:hover { background: var(--orange-2); transform: translateY(-3px); box-shadow: 0 18px 44px -12px rgba(242,100,25,0.95); }

/* ===================== SECTIONS ===================== */
.section { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; padding: clamp(72px, 11vw, 128px) clamp(18px, 4vw, 28px); }
.section-head { text-align: center; max-width: 660px; margin: 0 auto 60px; }
.section-head h2, .contact-intro h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4.6vw, 44px);
  line-height: 1.1;
  letter-spacing: 0.01em;
}
.section-head h2 { position: relative; padding-bottom: 22px; }
.section-head h2::after {
  content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 54px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--orange), var(--orange-2));
}

/* ===================== SERVICES ===================== */
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 24px; }
.service {
  position: relative; overflow: hidden;
  background: var(--card);
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.service::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--orange), var(--orange-2));
  transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.service:hover {
  transform: translateY(-7px);
  border-color: rgba(242,100,25,0.4);
  box-shadow: 0 28px 60px -26px rgba(242,100,25,0.42);
}
.service:hover::before { transform: scaleX(1); }
.service-icon {
  width: 58px; height: 58px; border-radius: 15px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(140deg, rgba(242,100,25,0.24), rgba(242,100,25,0.06));
  border: 1px solid rgba(242,100,25,0.22);
  color: var(--orange); margin-bottom: 22px;
  transition: transform .35s var(--ease);
}
.service:hover .service-icon { transform: translateY(-2px) scale(1.06); }
.service-icon svg { width: 28px; height: 28px; }
.service h3 { font-family: var(--font-display); font-weight: 700; font-size: 21px; margin-bottom: 13px; letter-spacing: 0.01em; }
.service p { color: var(--muted); font-size: 15px; }
.service p strong { color: var(--orange); font-weight: 600; }
.service-meta { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.meta-label { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 2px; }
.service-meta a { display: block; font-size: 14.5px; font-weight: 500; color: var(--text); line-height: 1.4; transition: color .2s; }
.service-meta a em { font-style: normal; font-weight: 400; font-size: 12.5px; color: var(--muted-2); }
.service-meta a:hover { color: var(--orange); }
.service-meta a:hover em { color: var(--muted); }

/* ===================== CONTACT ===================== */
.contact { border-top: 1px solid var(--line); }
.contact-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.12fr; gap: clamp(34px, 6vw, 76px); align-items: start;
}
.contact-intro { padding-top: 6px; }
.contact-intro p { color: var(--muted); margin-top: 18px; font-size: 16px; max-width: 380px; }

.contact-form {
  display: flex; flex-direction: column; gap: 18px;
  background: var(--card);
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 36px);
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 12.5px; font-weight: 600; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; }
.field label span { color: var(--muted-2); font-weight: 400; text-transform: none; letter-spacing: 0; }
.field input, .field textarea {
  background: rgba(8,10,14,0.7);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  color: var(--text); font-family: var(--font-body); font-size: 15px;
  padding: 14px 16px; resize: vertical;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:focus, .field textarea:focus {
  outline: none; background: rgba(8,10,14,0.95);
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(242,100,25,0.18);
}
.contact-form .btn { align-self: flex-start; margin-top: 6px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-error { color: #ff6b6b; font-size: 14px; margin-top: 2px; }
.form-done { text-align: center; padding: 30px 10px; }
.form-done-icon {
  width: 58px; height: 58px; margin: 0 auto 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--orange-soft); color: var(--orange); font-size: 27px;
  border: 1px solid rgba(242,100,25,0.32);
}
.form-done h3 { font-family: var(--font-display); font-weight: 700; font-size: 21px; margin-bottom: 9px; }
.form-done p { color: var(--muted); font-size: 15px; }

/* ===================== FOOTER ===================== */
.footer {
  position: relative; z-index: 1;
  background: rgba(7,9,12,0.55);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  padding: 60px clamp(18px,4vw,52px) 30px;
}
.footer-top {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap;
  padding-bottom: 34px; border-bottom: 1px solid var(--line);
}
.footer-brand .brand-logo { height: 40px; }
.footer-brand p { color: var(--muted); margin-top: 18px; max-width: 320px; font-size: 14px; }
.footer-loc { display: flex; align-items: center; gap: 8px; color: var(--muted-2); font-size: 13.5px; margin-top: 10px !important; }
.footer-loc svg { width: 15px; height: 15px; color: var(--orange); flex: none; }
.footer-links { display: flex; gap: 64px; }
.footer-links h4 { font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 16px; }
.footer-links a { display: block; color: var(--muted); font-size: 14.5px; margin-bottom: 11px; transition: color .2s; }
.footer-links a:hover { color: var(--orange); }
.footer-bottom {
  max-width: var(--maxw); margin: 24px auto 0;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 13px; color: var(--muted-2);
}

/* ===================== REVEAL ANIM ===================== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 820px) {
  .nav-links {
    position: fixed; top: var(--nav-h); right: 0;
    flex-direction: column; align-items: flex-start; gap: 4px;
    background: rgba(9,11,15,0.96); backdrop-filter: blur(16px);
    border-left: 1px solid var(--line); border-bottom: 1px solid var(--line);
    padding: 18px 22px; width: 230px;
    transform: translateX(110%); transition: transform .35s var(--ease);
  }
  .nav-links.open { transform: none; }
  .nav-links a { padding: 11px 0; width: 100%; }
  .nav-cta { margin-top: 8px; text-align: center; }
  .nav-toggle { display: flex; }
  .contact-inner { grid-template-columns: 1fr; }
}

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