/* UniqueEmbedded — 2026 visual system */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #f9a91a;
    --primary-deep: #e67e00;
    --accent: #ff9500;
    --success: #34d399;
    --danger: #ef4444;
    --bg: #070b14;
    --bg-elevated: #0e1522;
    --bg-card: rgba(255, 255, 255, 0.045);
    --text: #f5f7fb;
    --muted: #9aa8bc;
    --border: rgba(249, 169, 26, 0.18);
    --glow: 0 0 40px rgba(249, 169, 26, 0.18);
    --gradient: linear-gradient(135deg, #f9a91a 0%, #ff8a00 100%);
    --radius: 18px;
    --nav-h: 84px;
    --font: "Inter", system-ui, sans-serif;
    --display: "Outfit", "Inter", sans-serif;
    --mono: "JetBrains Mono", ui-monospace, monospace;
    --shadow-lg: 0 24px 50px rgba(0, 0, 0, 0.35);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(249, 169, 26, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(249, 169, 26, 0.035) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
    z-index: 0;
}

::selection {
    background: var(--primary);
    color: #1a1204;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -80px;
    z-index: 2000;
    background: var(--primary);
    color: #1a1204;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
}

.skip-link:focus {
    top: 12px;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-h);
    background: rgba(7, 11, 20, 0.72);
    backdrop-filter: blur(18px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
    background: rgba(7, 11, 20, 0.94);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.nav-container,
.navbar .container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--nav-h);
    gap: 24px;
}

.nav-logo,
.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-img,
.logo {
    height: 64px;
    width: auto;
    display: block;
    border-radius: 6px;
}

.footer-logo-img {
    height: 72px;
    width: auto;
    display: block;
    border-radius: 8px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.4rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: #e8eef7;
    font-weight: 500;
    font-size: 0.94rem;
    position: relative;
    padding: 6px 0;
}

.nav-menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.25s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gradient);
    color: #1a1204 !important;
    font-weight: 700 !important;
    padding: 10px 16px !important;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: var(--glow);
}

.nav-cta::after {
    display: none !important;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: 0;
    gap: 5px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--primary);
    transition: 0.3s;
}

/* Hero */
#threejs-background {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0.28;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: calc(var(--nav-h) + 32px) 0 72px;
    background:
        radial-gradient(ellipse at 15% 20%, rgba(249, 169, 26, 0.22), transparent 42%),
        radial-gradient(ellipse at 90% 80%, rgba(255, 133, 0, 0.12), transparent 40%),
        #070b14;
}

.hero-tagline,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary);
    background: rgba(249, 169, 26, 0.1);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 8px 14px;
    margin-bottom: 18px;
    font-family: var(--mono);
}

.circuit-background {
    position: absolute;
    inset: 0;
    opacity: 0.18;
    z-index: 1;
}

.circuit-line {
    position: absolute;
    width: 1px;
    height: 100%;
    background: #fff;
    left: 18%;
    animation: pulse 2.4s infinite;
}

.circuit-node {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: glow 2s infinite alternate;
}

.circuit-node:nth-child(2) { top: 20%; left: 17.6%; }
.circuit-node:nth-child(3) { top: 40%; left: 17.6%; animation-delay: 0.5s; }
.circuit-node:nth-child(4) { top: 60%; left: 17.6%; animation-delay: 1s; }
.circuit-node:nth-child(5) { top: 80%; left: 17.6%; animation-delay: 1.5s; }

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
    align-items: center;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.hero-text {
    position: relative;
    z-index: 5;
    background: radial-gradient(ellipse at left center, rgba(7, 11, 20, 0.85) 0%, rgba(7, 11, 20, 0.25) 62%, transparent 100%);
}

.hero-text h1 {
    font-family: var(--display);
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 1.1rem;
}

.hero-text h1 span {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-text p {
    font-size: 1.15rem;
    color: var(--muted);
    max-width: 560px;
    margin-bottom: 1.8rem;
}

.hero-stats {
    display: flex;
    gap: 12px;
    margin-bottom: 1.8rem;
    flex-wrap: wrap;
}

.stat {
    min-width: 130px;
    text-align: left;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    backdrop-filter: blur(10px);
}

.stat-number,
.stat-value,
.count-number {
    display: block;
    font-family: var(--display);
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
}

.stat-label,
.stat-desc,
.count-label {
    font-size: 0.78rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    position: relative;
    z-index: 10;
}

.btn-primary,
.btn-secondary {
    padding: 13px 22px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    cursor: pointer;
    font-family: inherit;
}

.btn-primary {
    background: var(--gradient);
    color: #1a1204;
    box-shadow: var(--glow);
}

.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
}

.hero-visual {
    position: relative;
    height: 420px;
}

.floating-components {
    position: relative;
    width: 100%;
    height: 100%;
}

.component {
    position: absolute;
    width: 92px;
    height: 92px;
    background: rgba(14, 21, 34, 0.7);
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
    animation: float 3.4s ease-in-out infinite;
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    box-shadow: var(--glow);
}

.component.microcontroller { top: 8%; left: 18%; }
.component.sensor { top: 28%; right: 8%; animation-delay: 0.5s; }
.component.iot { bottom: 28%; left: 8%; animation-delay: 1s; }
.component.pcb { bottom: 8%; right: 16%; animation-delay: 1.5s; }

.hero-orbit {
    position: absolute;
    inset: 40px;
    border: 1px dashed rgba(249, 169, 26, 0.25);
    border-radius: 50%;
    animation: spin 28s linear infinite;
}

/* Sections */
.services,
.about,
.connectivity,
.clients,
.contact,
.process,
.faq,
.legal-page,
.page-hero + * {
    position: relative;
    z-index: 1;
}

.services,
.about,
.connectivity,
.clients,
.contact,
.process,
.faq,
.testimonials {
    padding: 96px 0;
    scroll-margin-top: 90px;
}

.section-header {
    text-align: center;
    margin-bottom: 3.2rem;
}

.section-header h2,
.about-text h2,
.contact-info h2,
.legal-content h1,
.page-hero h1 {
    font-family: var(--display);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 0.8rem;
}

.section-header p {
    font-size: 1.08rem;
    color: var(--muted);
    max-width: 640px;
    margin: 0 auto;
}

.services-grid,
.connectivity-grid,
.testimonials-grid,
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.4rem;
}

.service-card,
.connectivity-card,
.testimonial-card,
.process-card,
.client-region,
.faq-item,
.contact-form,
.contact-item,
.cert-item {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.service-card,
.connectivity-card,
.process-card {
    padding: 28px;
    position: relative;
    overflow: hidden;
}

.service-card::before,
.client-region::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient);
}

.service-card:hover,
.connectivity-card:hover,
.client-region:hover,
.testimonial-card:hover,
.process-card:hover {
    transform: translateY(-6px);
    border-color: var(--border);
    box-shadow: var(--shadow-lg);
}

.service-icon,
.connectivity-icon,
.process-step {
    width: 58px;
    height: 58px;
    background: var(--gradient);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    color: #1a1204;
    font-size: 1.3rem;
}

.connectivity-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    margin: 0 auto 20px;
    color: #1a1204;
    font-size: 1.7rem;
}

.service-card h3,
.connectivity-card h3,
.process-card h3 {
    font-family: var(--display);
    font-size: 1.28rem;
    margin-bottom: 0.7rem;
}

.service-card p,
.connectivity-card p,
.process-card p {
    color: var(--muted);
    margin-bottom: 1rem;
}

.service-card ul {
    list-style: none;
}

.service-card li {
    padding: 0.35rem 0 0.35rem 1.3rem;
    color: #d5deea;
    position: relative;
}

.service-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
}

/* About */
.about-content,
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.2rem;
    align-items: start;
}

.about-text p {
    color: var(--muted);
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.certifications {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    margin-top: 1.6rem;
}

.cert-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.9rem 1rem;
}

.cert-item i {
    color: var(--success);
}

.tech-stack {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.tech-item {
    background: rgba(249, 169, 26, 0.1);
    border: 1px solid var(--border);
    color: var(--primary);
    padding: 0.9rem 0.5rem;
    border-radius: 12px;
    text-align: center;
    font-weight: 700;
    font-family: var(--mono);
    font-size: 0.85rem;
    animation: techPulse 2.4s infinite alternate;
}

.tech-item:nth-child(odd) {
    animation-delay: 0.4s;
}

.connectivity-card {
    text-align: center;
    padding: 36px 24px;
}

.project-count {
    padding: 14px;
    background: rgba(249, 169, 26, 0.08);
    border-radius: 12px;
}

.connectivity-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 48px;
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
}

.stat-item {
    text-align: center;
}

.clients-map {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.2rem;
}

.client-region {
    padding: 1.8rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.region-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 0.6rem;
    color: var(--primary);
    font-weight: 700;
}

.region-marker i {
    font-size: 1.6rem;
    margin-bottom: 0.35rem;
}

.region-info p {
    color: var(--muted);
}

/* Testimonials */
.testimonials {
    background:
        radial-gradient(ellipse at top, rgba(249, 169, 26, 0.08), transparent 50%),
        var(--bg);
}

.testimonial-card {
    padding: 1.6rem;
}

.stars {
    display: flex;
    gap: 0.2rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.testimonial-card p {
    color: #e8eef7;
    font-style: italic;
    margin-bottom: 1.2rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.author-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1204;
}

.author-info span {
    color: var(--muted);
    font-size: 0.88rem;
}

/* Process + FAQ */
.process-step {
    font-family: var(--display);
    font-weight: 800;
    font-size: 1.1rem;
}

.faq-list {
    max-width: 860px;
    margin: 0 auto;
    display: grid;
    gap: 12px;
}

.faq-item {
    padding: 0;
}

.faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 18px 22px;
    font-weight: 700;
    font-family: var(--display);
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    color: var(--primary);
    font-size: 1.4rem;
    line-height: 1;
}

.faq-item[open] summary::after {
    content: "–";
}

.faq-item p {
    padding: 0 22px 18px;
    color: var(--muted);
}

/* Contact */
.contact-info p {
    color: var(--muted);
    margin-bottom: 1.4rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1rem;
}

.contact-item i {
    color: var(--primary);
    width: 20px;
}

.contact-form {
    padding: 1.6rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.82rem;
    color: var(--muted);
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    background: rgba(7, 11, 20, 0.7);
    color: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(249, 169, 26, 0.15);
}

.form-group option {
    background: #101827;
}

.contact-form .btn-primary {
    width: 100%;
    margin-top: 4px;
}

.contact-form .btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
    padding: 12px 18px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
}

.whatsapp-float {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    z-index: 1200;
    box-shadow: 0 10px 24px rgba(37, 211, 102, 0.4);
    text-decoration: none;
}

/* Footer */
.footer {
    background: #05080f;
    padding: 64px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    z-index: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-section p,
.footer-section ul li a {
    color: var(--muted);
    text-decoration: none;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 0.9rem;
    font-family: var(--display);
    font-size: 1.05rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.45rem;
}

.footer-section ul li a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 0.7rem;
}

.social-links a {
    width: 38px;
    height: 38px;
    background: rgba(249, 169, 26, 0.15);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.4rem;
    text-align: center;
    color: var(--muted);
}

/* Legal / inner pages */
.page-hero {
    padding: calc(var(--nav-h) + 48px) 0 40px;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(249, 169, 26, 0.16), transparent 50%),
        var(--bg);
    text-align: center;
}

.page-hero p,
.prose a,
.legal-content a {
    color: var(--muted);
}

.prose a,
.legal-content a,
.footer-bottom a {
    color: var(--primary);
}

.legal-page {
    padding: calc(var(--nav-h) + 40px) 0 96px;
}

.inner-page {
    padding: 24px 0 96px;
}

.legal-content,
.prose {
    max-width: 860px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 40px;
}

.legal-content h2,
.prose h2 {
    font-family: var(--display);
    margin: 1.6rem 0 0.6rem;
    font-size: 1.35rem;
}

.legal-content p,
.prose p,
.last-updated {
    color: var(--muted);
    margin-bottom: 0.8rem;
}

.last-updated {
    font-size: 0.9rem;
    margin-bottom: 1.4rem;
}

.error-page {
    min-height: 70vh;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 48px 24px;
}

.error-page .code {
    font-family: var(--display);
    font-size: 6rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-16px); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.25; }
    50% { opacity: 1; }
}

@keyframes glow {
    0% { box-shadow: 0 0 6px rgba(249, 169, 26, 0.4); }
    100% { box-shadow: 0 0 18px rgba(249, 169, 26, 0.9); }
}

@keyframes techPulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.04); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
}

@media (max-width: 900px) {
    .hero-content,
    .about-content,
    .contact-content,
    .footer-content {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        height: 280px;
    }

    .connectivity-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: var(--nav-h);
        flex-direction: column;
        background: rgba(7, 11, 20, 0.97);
        width: 100%;
        padding: 1.4rem 0 2rem;
        gap: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        transition: left 0.3s ease;
    }

    .nav-menu a {
        padding: 0.9rem 0;
        display: block;
        text-align: center;
        width: 100%;
    }

    .nav-cta {
        margin: 12px auto 0;
        width: fit-content;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .hero-text h1 {
        font-size: 2.3rem;
    }

    .hero-stats,
    .hero-buttons {
        justify-content: flex-start;
    }

    .tech-stack,
    .certifications {
        grid-template-columns: 1fr 1fr;
    }

    .legal-content,
    .prose {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        flex-direction: column;
    }

    .tech-stack,
    .certifications {
        grid-template-columns: 1fr;
    }
}
