/* ===== UXP.PT ===== */
:root {
  --bg: #050810;
  --bg2: #090d1a;
  --bg3: #0d1425;
  --surface: #111827;
  --surface2: #1a2235;
  --border: rgba(255,255,255,0.07);
  --border2: rgba(255,255,255,0.13);
  --accent: #4f8ef7;
  --accent2: #7c5cfc;
  --accent3: #00d4aa;
  --glow: rgba(79,142,247,0.25);
  --text: #e8edf5;
  --text2: #8b96a8;
  --text3: #5a6578;
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --max-w: 1140px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface2); border-radius: 3px; }

/* ===== TYPE ===== */
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; color: var(--text); }
h1 { font-size: clamp(2.8rem, 6vw, 5rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; font-weight: 600; }
p  { color: var(--text2); font-size: 1rem; line-height: 1.75; }
p + p { margin-top: 1rem; }
em { font-style: italic; color: var(--accent); }
strong { color: var(--text); font-weight: 600; }
a  { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: #fff; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }
section { padding: 6rem 0; }

/* ===== REVEAL ===== */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.75s var(--ease), transform 0.75s var(--ease); }
[data-reveal].visible { opacity: 1; transform: translateY(0); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.75rem 1.75rem; border-radius: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
  letter-spacing: 0.01em; transition: all 0.25s var(--ease);
  cursor: pointer; border: none; text-decoration: none;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #6ba0ff; color: #fff; box-shadow: 0 0 30px var(--glow); transform: translateY(-2px); }
.btn-ghost   { background: transparent; color: var(--text2); border: 1px solid var(--border2); }
.btn-ghost:hover { background: var(--surface); color: var(--text); border-color: var(--accent); }
.btn-outline { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.btn-outline:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }

/* ===== TAGS ===== */
.section-tag {
  display: inline-block; font-family: var(--font-display); font-size: 0.75rem;
  font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--accent); background: rgba(79,142,247,0.1);
  border: 1px solid rgba(79,142,247,0.25); border-radius: 100px;
  padding: 0.35rem 1rem; margin-bottom: 1.5rem;
}
.start-tag {
  display: inline-block; font-family: var(--font-display); font-size: 0.75rem;
  font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--accent3); background: rgba(0,212,170,0.1);
  border: 1px solid rgba(0,212,170,0.25); border-radius: 100px;
  padding: 0.35rem 1rem; margin-bottom: 1.5rem;
}
.section-title { margin-bottom: 3.5rem; }

/* ===== NAV ===== */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1rem 0; transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
}
#nav.scrolled {
  background: rgba(5,8,16,0.92); backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px); box-shadow: 0 1px 0 var(--border); padding: 0.7rem 0;
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.logo { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; color: #fff; letter-spacing: -0.03em; text-decoration: none; flex-shrink: 0; }
.logo-dot { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 0.25rem; flex: 1; justify-content: center; }
.nav-links a { font-family: var(--font-display); font-size: 0.9rem; font-weight: 600; color: var(--text2); padding: 0.45rem 0.9rem; border-radius: 6px; transition: all 0.2s; text-decoration: none; }
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-cta { background: var(--accent) !important; color: #fff !important; padding: 0.45rem 1.1rem !important; }
.nav-cta:hover { background: #6ba0ff !important; }

/* ===== LANGUAGE SWITCHER ===== */
.lang-switcher { position: relative; flex-shrink: 0; }
.lang-current {
  display: flex; align-items: center; gap: 0.4rem;
  background: var(--surface); border: 1px solid var(--border2); border-radius: 8px;
  padding: 0.4rem 0.75rem; cursor: pointer;
  font-family: var(--font-display); font-size: 0.85rem; font-weight: 600;
  color: var(--text2); transition: all 0.2s; white-space: nowrap;
}
.lang-current:hover { border-color: var(--accent); color: var(--text); }
.lang-flag { font-size: 1.1rem; line-height: 1; }
.lang-code { font-size: 0.8rem; letter-spacing: 0.05em; }
.lang-chevron { transition: transform 0.2s; flex-shrink: 0; color: var(--text3); }
.lang-switcher.open .lang-chevron { transform: rotate(180deg); }

.lang-dropdown {
  display: none; position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--bg2); border: 1px solid var(--border2); border-radius: var(--radius);
  overflow: hidden; min-width: 165px; box-shadow: 0 20px 50px rgba(0,0,0,0.5); z-index: 200;
}
.lang-switcher.open .lang-dropdown { display: block; }
.lang-option {
  display: flex; align-items: center; gap: 0.75rem; width: 100%;
  padding: 0.65rem 1rem; background: none; border: none; cursor: pointer;
  font-family: var(--font-display); font-size: 0.85rem; font-weight: 500;
  color: var(--text2); transition: background 0.15s, color 0.15s; text-align: left;
}
.lang-option:hover { background: var(--surface); color: var(--text); }
.lang-option.active { color: var(--accent); background: rgba(79,142,247,0.08); }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; flex-shrink: 0; }
.burger span { display: block; width: 24px; height: 2px; background: var(--text2); border-radius: 2px; transition: all 0.3s; }

.mobile-menu {
  display: none; flex-direction: column; position: fixed;
  top: 60px; left: 0; right: 0; background: var(--bg2);
  border-bottom: 1px solid var(--border); z-index: 99; padding: 1rem 2rem; gap: 0;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-family: var(--font-display); font-size: 1rem; font-weight: 600; color: var(--text2); padding: 0.7rem 0; border-bottom: 1px solid var(--border); text-decoration: none; }
.mobile-menu a:last-of-type { border-bottom: none; }

.mobile-lang-row { display: flex; gap: 0.5rem; padding: 0.9rem 0 0.25rem; flex-wrap: wrap; }
.mobile-lang-btn {
  font-size: 1.4rem; background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; padding: 0.35rem 0.55rem; cursor: pointer; transition: border-color 0.2s; line-height: 1;
}
.mobile-lang-btn:hover, .mobile-lang-btn.active { border-color: var(--accent); }

@media (max-width: 900px) { .nav-links { display: none; } .burger { display: flex; } }

/* ===== HERO ===== */
#hero {
  min-height: 100vh; display: flex; align-items: center;
  position: relative; overflow: hidden; padding: 8rem 2rem 4rem;
}
.hero-bg { position: absolute; inset: 0; overflow: hidden; }
.orb {
  position: absolute; border-radius: 50%; filter: blur(80px);
  opacity: 0.35; animation: drift 12s ease-in-out infinite alternate;
}
.orb1 { width: 500px; height: 500px; background: radial-gradient(circle, var(--accent2) 0%, transparent 70%); top: -100px; left: -100px; animation-duration: 14s; }
.orb2 { width: 400px; height: 400px; background: radial-gradient(circle, var(--accent) 0%, transparent 70%); top: 20%; right: 5%; animation-duration: 10s; animation-delay: -4s; }
.orb3 { width: 300px; height: 300px; background: radial-gradient(circle, var(--accent3) 0%, transparent 70%); bottom: 10%; left: 35%; animation-duration: 16s; animation-delay: -8s; }
@keyframes drift { from { transform: translate(0,0) scale(1); } to { transform: translate(40px,30px) scale(1.1); } }

#grid-canvas { position: absolute; inset: 0; opacity: 0.15; }

.hero-content { position: relative; z-index: 2; max-width: 600px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; font-weight: 600; font-family: var(--font-display);
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent3); background: rgba(0,212,170,0.1);
  border: 1px solid rgba(0,212,170,0.3); border-radius: 100px;
  padding: 0.4rem 1rem; margin-bottom: 1.5rem;
}
#hero h1 { margin-bottom: 1.25rem; }
.hero-sub { font-size: 1.15rem; color: var(--text2); max-width: 520px; margin-bottom: 2rem; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 3rem; }
.hero-stats { display: flex; align-items: center; gap: 2rem; }
.stat { display: flex; flex-direction: column; gap: 0.15rem; }
.stat-num { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--text); letter-spacing: -0.03em; }
.stat-label { font-size: 0.75rem; font-weight: 500; color: var(--text3); letter-spacing: 0.05em; text-transform: uppercase; }
.stat-sep { width: 1px; height: 36px; background: var(--border2); }

.hero-visual {
  position: absolute; right: max(2rem, calc((100vw - 1140px) / 2));
  top: 50%; transform: translateY(-50%); z-index: 2;
  width: clamp(300px, 38vw, 490px);
}
.code-window {
  background: var(--bg3); border: 1px solid var(--border2); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: 0 40px 100px rgba(0,0,0,0.5), 0 0 0 1px var(--border);
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.window-bar { display: flex; align-items: center; gap: 0.5rem; padding: 0.85rem 1.25rem; background: var(--surface); border-bottom: 1px solid var(--border); }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: #ff5f57; } .dot.yellow { background: #febc2e; } .dot.green { background: #28c840; }
.window-title { margin-left: 0.5rem; font-size: 0.75rem; color: var(--text3); font-family: monospace; }
.code-block { padding: 1.5rem; font-family: 'JetBrains Mono','Fira Code','Courier New',monospace; font-size: 0.82rem; line-height: 1.8; overflow-x: auto; background: var(--bg3); }
.c-kw { color: #c792ea; } .c-fn { color: #82aaff; } .c-str { color: #c3e88d; } .c-num { color: #f78c6c; } .c-comment { color: #546e7a; font-style: italic; }

@media (max-width: 900px) {
  .hero-visual { display: none; }
  #hero { padding: 7rem 2rem 5rem; justify-content: center; text-align: center; }
  .hero-content { max-width: 100%; }
  .hero-sub, .hero-badge { margin-inline: auto; }
  .hero-actions, .hero-stats { justify-content: center; }
}

/* ===== WHAT WE DO ===== */
#what { background: var(--bg2); }
.what-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.what-text h2 { margin-bottom: 1.25rem; }
.what-text .btn { margin-top: 1.75rem; }
.what-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.info-card { background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; transition: border-color 0.25s, transform 0.25s; }
.info-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.card-icon { font-size: 1.75rem; margin-bottom: 0.75rem; }
.info-card h4 { margin-bottom: 0.5rem; }
.info-card p { font-size: 0.9rem; }
@media (max-width: 820px) { .what-grid { grid-template-columns: 1fr; gap: 2.5rem; } }

/* ===== SERVICES ===== */
#services { background: var(--bg); }
.features-grid { display: grid; grid-template-columns: repeat(3,1fr); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.feature-item { padding: 2rem; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); transition: background 0.25s; }
.feature-item:hover { background: var(--surface); }
.feature-item:nth-child(3n) { border-right: none; }
.feature-item:nth-child(7), .feature-item:nth-child(8), .feature-item:nth-child(9) { border-bottom: none; }
.feature-num { font-family: var(--font-display); font-size: 0.7rem; font-weight: 700; color: var(--accent); letter-spacing: 0.15em; margin-bottom: 0.75rem; }
.feature-item h3 { margin-bottom: 0.5rem; }
.feature-item p { font-size: 0.9rem; }
@media (max-width: 820px) {
  .features-grid { grid-template-columns: 1fr 1fr; }
  .feature-item:nth-child(3n) { border-right: 1px solid var(--border); }
  .feature-item:nth-child(2n) { border-right: none; }
  .feature-item:nth-child(7), .feature-item:nth-child(8), .feature-item:nth-child(9) { border-bottom: 1px solid var(--border); }
  .feature-item:last-child { border-bottom: none; }
}
@media (max-width: 520px) { .features-grid { grid-template-columns: 1fr; } .feature-item { border-right: none !important; } }

/* ===== APPS ===== */
#apps { background: var(--bg2); }
.apps-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem; }
.app-card { background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; text-align: center; transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s; }
.app-card:hover { border-color: var(--accent); transform: translateY(-6px); box-shadow: 0 20px 50px rgba(0,0,0,0.3); }
.app-logo { width: 60px; height: 60px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; margin: 0 auto 1.25rem; letter-spacing: -0.04em; }
.app-logo.ps { background: linear-gradient(135deg,#001e36,#00c8ff); color: #31a8ff; }
.app-logo.id { background: linear-gradient(135deg,#1c003e,#ff0097); color: #ff61f6; }
.app-logo.ai { background: linear-gradient(135deg,#2d1700,#ff9a00); color: #ff9a00; }
.app-logo.pr { background: linear-gradient(135deg,#00005b,#9999ff); color: #9999ff; }
.app-logo.ae { background: linear-gradient(135deg,#1a003e,#7c5cfc); color: #b197fc; }
.app-logo.xd { background: linear-gradient(135deg,#2e001e,#ff61f6); color: #ff61f6; }
.app-card h4 { margin-bottom: 0.5rem; }
.app-card p { font-size: 0.9rem; }
@media (max-width: 820px) { .apps-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 520px) { .apps-grid { grid-template-columns: 1fr; } }

/* ===== PROCESS ===== */
#process { background: var(--bg); }
.process-grid { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: start; margin-bottom: 3rem; }
.process-step { background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; transition: border-color 0.3s, transform 0.3s; }
.process-step:hover { border-color: var(--accent); transform: translateY(-4px); }
.process-num { font-family: var(--font-display); font-size: 2.5rem; font-weight: 800; color: var(--accent); opacity: 0.3; line-height: 1; margin-bottom: 1rem; letter-spacing: -0.04em; }
.process-body h3 { margin-bottom: 0.6rem; font-size: 1.1rem; }
.process-body p { font-size: 0.9rem; }
.process-line { width: 40px; height: 1px; background: var(--border2); margin-top: 3rem; align-self: start; position: relative; }
.process-line::after { content: ''; position: absolute; right: -6px; top: -4px; width: 8px; height: 8px; border-top: 1px solid var(--border2); border-right: 1px solid var(--border2); transform: rotate(45deg); }
@media (max-width: 900px) {
  .process-grid { grid-template-columns: 1fr; }
  .process-line { width: 1px; height: 36px; margin: 0 0 0 2rem; }
  .process-line::after { right: -4px; top: auto; bottom: -6px; transform: rotate(135deg); }
}

/* ===== UPDATE STRIP ===== */
.update-strip {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent3);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-top: 0;
}
.update-strip-icon {
  font-size: 1.1rem;
  color: var(--accent3);
  flex-shrink: 0;
  margin-top: 0.1rem;
  font-weight: 300;
}
.update-strip-text {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text2);
}
.update-strip-text strong {
  display: inline;
  color: var(--text);
  font-size: 0.9rem;
  margin-right: 0.35rem;
}
.update-strip-text span {
  color: var(--text2);
}

/* ===== CONTACT ===== */
#contact { background: var(--bg2); }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.contact-text h2 { margin-bottom: 1.25rem; }
.contact-text > p { margin-bottom: 2rem; }
.contact-perks { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.contact-perks li { font-size: 0.95rem; color: var(--text2); font-family: var(--font-display); font-weight: 500; }
.contact-card { background: var(--bg3); border: 1px solid var(--border2); border-radius: var(--radius-lg); padding: 2.5rem; }
.contact-card h3 { font-size: 1.4rem; margin-bottom: 0.75rem; }
.contact-card > p { margin-bottom: 2rem; font-size: 0.95rem; }
.contact-btn { width: 100%; justify-content: center; padding: 0.85rem 1.75rem; margin-bottom: 1.5rem; }
.contact-note { text-align: center; font-size: 0.8rem; color: var(--text3); font-family: var(--font-display); letter-spacing: 0.05em; }
@media (max-width: 820px) { .contact-inner { grid-template-columns: 1fr; gap: 2.5rem; } }

/* ===== FOOTER ===== */
footer { background: var(--bg); border-top: 1px solid var(--border); padding: 3rem 0; }
.footer-inner { text-align: center; }
.footer-logo { font-family: var(--font-display); font-size: 1.75rem; font-weight: 800; color: var(--text); letter-spacing: -0.03em; margin-bottom: 0.75rem; }
.footer-logo span { color: var(--accent); }
.footer-tagline { font-size: 0.95rem; color: var(--text2); margin-bottom: 0.75rem; }
.footer-note { font-size: 0.78rem; color: var(--text3); max-width: 500px; margin: 0 auto; }
