/* ============ SoftMediaTec — styles ============ */
:root {
  --bg: #123038;
  --bg-2: #173a44;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-2: rgba(255, 255, 255, 0.10);
  --border: rgba(255, 255, 255, 0.14);
  --text: #f2f8f8;
  --muted: #b7c8ca;
  --brand: #14b8a6;            /* blue-green / teal */
  --brand-2: #2dd4bf;          /* bright teal */
  --accent: #f97316;           /* orange */
  --accent-2: #fb923c;         /* bright orange */
  --grad: linear-gradient(120deg, #2dd4bf 0%, #14b8a6 45%, #f97316 115%);
  --grad-orange: linear-gradient(120deg, #fb923c, #f97316);
  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1120px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  background:
    radial-gradient(50% 40% at 85% 0%, rgba(249, 115, 22, 0.16), transparent 60%),
    radial-gradient(55% 45% at 8% 18%, rgba(20, 184, 166, 0.18), transparent 60%),
    radial-gradient(60% 50% at 95% 80%, rgba(45, 212, 191, 0.12), transparent 60%),
    linear-gradient(180deg, #163842 0%, #123038 45%, #14333c 100%);
  background-attachment: fixed;
}

h1, h2, h3 { font-family: "Sora", "Inter", sans-serif; line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

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

/* ---- Accessibility ---- */
.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 200;
  background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { left: 12px; }
:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 3px; border-radius: 6px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
  border: 1px solid transparent; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  white-space: nowrap;
}
.btn-primary { background: var(--grad-orange); color: #160a01; box-shadow: 0 10px 30px -10px rgba(249, 115, 22, 0.6); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(249, 115, 22, 0.8); }
.btn-ghost { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface); transform: translateY(-2px); }
.btn-lg { padding: 16px 28px; font-size: 1.02rem; }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(18, 48, 56, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.brand-name { font-family: "Sora", sans-serif; font-size: 1.12rem; letter-spacing: -0.01em; }
.brand-logo {
  height: 34px; width: auto; display: block;
  background: #fff; padding: 7px 12px; border-radius: 12px;
  box-shadow: 0 6px 18px -8px rgba(0,0,0,0.5);
}
.brand-footer .brand-logo { height: 38px; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: 0.95rem; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 16px; }

.lang-switch { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 0.9rem; }
.lang-btn {
  background: none; border: none; color: var(--muted); cursor: pointer; font: inherit;
  font-weight: 600; padding: 4px 4px; border-radius: 6px; transition: color .2s;
}
.lang-btn[aria-pressed="true"] { color: var(--text); }
.lang-btn:hover { color: var(--text); }

.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: var(--text); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav { display: none; flex-direction: column; padding: 8px 24px 18px; border-bottom: 1px solid var(--border); background: rgba(18,48,56,0.97); }
.mobile-nav a { padding: 12px 0; color: var(--muted); border-bottom: 1px solid var(--border); }
.mobile-nav a:last-child { border-bottom: 0; }
.mobile-nav.open { display: flex; }

/* ---- Hero ---- */
.hero { position: relative; padding: clamp(70px, 12vw, 140px) 0 clamp(60px, 9vw, 110px); overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 55% at 80% 6%, rgba(249, 115, 22, 0.20), transparent 60%),
    radial-gradient(55% 50% at 10% 12%, rgba(20, 184, 166, 0.22), transparent 60%),
    radial-gradient(70% 60% at 50% 112%, rgba(45, 212, 191, 0.16), transparent 60%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 54px 54px; mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent 80%);
}
.hero-inner { position: relative; z-index: 1; max-width: 880px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; font-weight: 600; color: var(--brand-2); margin-bottom: 16px; }
.hero-title { font-size: clamp(2.3rem, 6vw, 4.1rem); font-weight: 800; }
.hero-title { background: linear-gradient(180deg, #fff 35%, #bfe9e4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { color: var(--muted); font-size: clamp(1.02rem, 2.2vw, 1.22rem); margin-top: 22px; max-width: 680px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 40px 0 0; }
.hero-tags li {
  font-size: 0.85rem; color: var(--muted); padding: 8px 14px; border: 1px solid var(--border);
  border-radius: 999px; background: var(--surface);
}

/* ---- Sections ---- */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section-alt { background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 640px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); margin: 6px 0 0; }
.section-lead { color: var(--muted); margin-top: 16px; font-size: 1.05rem; }

/* ---- Grids & cards ---- */
.grid { display: grid; gap: 22px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: transform .35s var(--ease), border-color .35s, background .35s;
}
.card:hover { transform: translateY(-5px); border-color: rgba(20,184,166,0.55); background: var(--surface-2); }
.service-card .card-icon {
  display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px;
  font-size: 1.4rem; color: #08151a; background: var(--grad); margin-bottom: 18px;
}
.card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.97rem; }
.feature { border-radius: var(--radius-sm); }

/* ---- Work ---- */
.work { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 5vw, 64px); align-items: center; margin-top: clamp(36px, 6vw, 72px); }
.work:first-of-type { margin-top: 0; }
.work-reverse .work-media { order: 2; }
.work-media { position: relative; }
.work-media:not(.work-media-app) > img:first-child {
  border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow);
  width: 100%; height: auto; aspect-ratio: 1291 / 832; object-fit: cover; display: block;
}
.work-media-inset {
  position: absolute; right: -14px; bottom: -22px; width: 46%; border-radius: 14px;
  border: 2px solid rgba(255,255,255,0.14); box-shadow: var(--shadow);
}
.work-media-app {
  display: grid; place-items: center; padding: 36px 0; border-radius: var(--radius);
  border: 1px solid var(--border); box-shadow: var(--shadow);
  background:
    radial-gradient(70% 70% at 50% 28%, rgba(20,184,166,0.28), transparent 70%),
    radial-gradient(60% 50% at 80% 95%, rgba(249,115,22,0.20), transparent 70%),
    linear-gradient(160deg, #0e2730, #08151a);
}
.app-shot {
  width: auto; height: clamp(360px, 52vw, 520px); max-width: 100%;
  aspect-ratio: 1968 / 3812; object-fit: contain;
  border-radius: 30px; box-shadow: 0 30px 70px -20px rgba(0,0,0,0.75);
}
.work-kicker { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.74rem; font-weight: 700; color: var(--brand-2); }
.work-body h3 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin: 8px 0 6px; }
.work-tagline { font-size: 1.12rem; font-weight: 600; color: var(--text); margin-bottom: 12px; }
.work-body p { color: var(--muted); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 18px 0; }
.chips li { font-size: 0.8rem; padding: 6px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); }
.store-links { display: flex; flex-wrap: wrap; gap: 18px 24px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--brand-2); transition: gap .25s var(--ease), color .2s; }
.link-arrow:hover { gap: 14px; color: #fff; }

/* ---- Contact ---- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 6vw, 64px); align-items: center; }
.contact-grid h2 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); margin: 6px 0 0; }
.contact-grid .btn { margin-top: 26px; }
.contact-card { border-radius: var(--radius); }
.contact-card h3 { margin-bottom: 18px; }
.contact-list { margin: 0; display: grid; gap: 16px; }
.contact-list dt { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 3px; }
.contact-list dd { margin: 0; font-weight: 500; }
.contact-list a { color: var(--brand-2); }

/* ---- Footer ---- */
.site-footer { border-top: 1px solid var(--border); padding: 48px 0; background: rgba(8, 24, 28, 0.5); }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-brand p { color: var(--muted); margin-top: 12px; max-width: 320px; }
.footer-meta { text-align: right; color: var(--muted); font-size: 0.9rem; display: grid; gap: 6px; }
.footer-meta a { color: var(--brand-2); }
.copyright { margin-top: 6px; }
.legal-link { background: none; border: 0; color: var(--muted); cursor: pointer; font: inherit; text-decoration: underline; padding: 0; }
.legal-link:hover { color: var(--text); }

/* ---- Modal ---- */
.modal { border: 1px solid var(--border); border-radius: var(--radius); padding: 0; background: var(--bg-2); color: var(--text); max-width: 540px; width: calc(100% - 40px); box-shadow: var(--shadow); }
.modal::backdrop { background: rgba(4, 7, 16, 0.7); backdrop-filter: blur(4px); }
.modal-inner { padding: 32px; position: relative; }
.modal-inner h2 { font-size: 1.5rem; margin-bottom: 16px; }
.modal-inner p { color: var(--muted); margin-bottom: 16px; }
.modal-inner strong { color: var(--text); }
.modal-inner a { color: var(--brand-2); }
.modal-close { position: absolute; top: 14px; right: 16px; background: none; border: 0; color: var(--muted); font-size: 1.8rem; line-height: 1; cursor: pointer; }
.modal-close:hover { color: var(--text); }

/* ============ Cinematic motion ============ */

/* Floating orbs */
.orbs { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.55; will-change: transform; }
.orb-1 { width: 460px; height: 460px; top: -120px; left: -80px;
  background: radial-gradient(circle at 30% 30%, #2dd4bf, transparent 70%); animation: float1 16s ease-in-out infinite; }
.orb-2 { width: 520px; height: 520px; top: -60px; right: -120px;
  background: radial-gradient(circle at 70% 30%, #f97316, transparent 70%); opacity: 0.45; animation: float2 19s ease-in-out infinite; }
.orb-3 { width: 380px; height: 380px; bottom: -160px; left: 38%;
  background: radial-gradient(circle at 50% 50%, #14b8a6, transparent 70%); animation: float3 22s ease-in-out infinite; }

@keyframes float1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(40px,30px) scale(1.08); } }
@keyframes float2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-50px,40px) scale(1.12); } }
@keyframes float3 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(30px,-40px) scale(1.06); } }

/* Animated aurora grid drift in hero */
.hero-bg { animation: auroraDrift 24s ease-in-out infinite alternate; }
@keyframes auroraDrift { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(-2%, -1.5%, 0) scale(1.06); } }

/* Hero entrance (staggered) */
.hero-inner > * { opacity: 0; transform: translateY(26px); animation: heroIn .9s var(--ease) forwards; }
.hero-inner .eyebrow    { animation-delay: .10s; }
.hero-inner .hero-sub   { animation-delay: .36s; }
.hero-inner .hero-cta   { animation-delay: .50s; }
.hero-inner .hero-tags  { animation-delay: .64s; }
@keyframes heroIn { to { opacity: 1; transform: none; } }

/* Shimmering hero title */
.hero-title {
  background: linear-gradient(100deg, #ffffff 0%, #bfe9e4 30%, #ffd8b0 50%, #bfe9e4 70%, #ffffff 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: heroIn .9s var(--ease) .22s both, shimmer 10s linear .9s infinite;
}
@keyframes shimmer { to { background-position: -250% 0; } }

/* Button shine sweep */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.45), transparent);
  transform: skewX(-18deg); transition: left .6s var(--ease);
}
.btn-primary:hover::after { left: 140%; }

/* Reveal on scroll (with optional stagger via --d) */
.reveal { opacity: 0; transform: translateY(32px) scale(0.985); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* Pulsing accent on links */
.link-arrow span[aria-hidden] { transition: transform .25s var(--ease); }

/* ---- Responsive ---- */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
}
@media (max-width: 760px) {
  .grid-3 { grid-template-columns: 1fr; }
  .work, .work-reverse, .contact-grid { grid-template-columns: 1fr; }
  .work-reverse .work-media { order: 0; }
  .work-media-inset { width: 40%; right: 0; bottom: -16px; }
  .footer-inner { flex-direction: column; }
  .footer-meta { text-align: left; }
}
@media (max-width: 460px) {
  .grid-4 { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .btn, .card, .link-arrow { transition: none; }
  .orb, .hero-bg, .hero-title { animation: none !important; }
  .hero-inner > * { opacity: 1 !important; transform: none !important; animation: none !important; }
  .btn-primary::after { display: none; }
  .hero-title { background: linear-gradient(180deg, #fff 35%, #bfe9e4); -webkit-background-clip: text; background-clip: text; }
}
