/* =========================================================
   ULTIMORPH LIMITED — style.css
   Palette: deep plum / vivid violet → magenta → rose,
   with electric cyan-lime accent. Fonts: Space Grotesk + Manrope.
   ========================================================= */

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

:root {
    --plum:        #120726;
    --plum-deep:   #0b0418;
    --plum-soft:   #1c0d38;
    --violet:      #8b5cf6;
    --violet-deep: #7c3aed;
    --magenta:     #c026d3;
    --rose:        #f43f5e;
    --cyan:        #22d3ee;
    --lime:        #a3e635;
    --grad-brand:  linear-gradient(120deg, #8b5cf6 0%, #c026d3 52%, #f43f5e 100%);
    --grad-accent: linear-gradient(120deg, #22d3ee 0%, #a3e635 100%);

    --text:        #201430;
    --text-muted:  #5d5470;
    --text-light:  #938aa6;
    --bg:          #ffffff;
    --bg-alt:      #f7f3ff;
    --border:      #ebe3fb;

    --radius:      16px;
    --radius-lg:   24px;
    --radius-xl:   34px;
    --radius-pill: 50px;
    --shadow-sm:   0 3px 14px rgba(76,29,149,0.08);
    --shadow:      0 18px 46px rgba(76,29,149,0.14);
    --shadow-lg:   0 34px 80px rgba(30,7,60,0.30);
    --transition:  all 0.3s cubic-bezier(.4,0,.2,1);
    --header-h:    78px;

    --font-head:   'Space Grotesk', 'Manrope', sans-serif;
    --font-body:   'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    line-height: 1.68;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--violet-deep); text-decoration: none; transition: var(--transition); }
ul { list-style: none; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section { padding: 108px 0; }
.section-alt { background: var(--bg-alt); }

.text-grad {
    background: var(--grad-brand);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}

/* ----- Buttons ----- */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--font-head); font-weight: 600; font-size: 0.98rem;
    padding: 14px 26px; border-radius: var(--radius-pill);
    cursor: pointer; border: none; transition: var(--transition);
    white-space: nowrap; letter-spacing: 0.2px;
}
.btn-primary {
    background: var(--grad-brand); color: #fff;
    box-shadow: 0 12px 30px rgba(192,38,211,0.34);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(192,38,211,0.46); color:#fff; }
.btn-ghost {
    background: rgba(255,255,255,0.06); color: #fff;
    border: 1.5px solid rgba(255,255,255,0.28);
}
.btn-ghost:hover { background: rgba(255,255,255,0.14); transform: translateY(-3px); color:#fff; }
.btn-outline {
    background: transparent; color: var(--violet-deep);
    border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--violet); transform: translateY(-3px); }
.btn-lg { padding: 17px 34px; font-size: 1.05rem; }
.btn-full { width: 100%; justify-content: center; }

/* ----- Header ----- */
.header {
    position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
    display: flex; align-items: center;
    background: transparent; transition: var(--transition);
}
.header.scrolled {
    background: rgba(11,4,24,0.82);
    backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}
.nav { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.logo { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 700; }
.logo-mark {
    width: 40px; height: 40px; border-radius: 12px; background: var(--grad-brand);
    display: grid; place-items: center; color: #fff; font-size: 1.05rem; font-weight: 700;
    box-shadow: 0 8px 20px rgba(192,38,211,0.4);
}
.logo-text { font-size: 1.24rem; letter-spacing: 0.5px; color: #fff; }
.logo-accent { -webkit-text-fill-color: transparent; background: var(--grad-accent); -webkit-background-clip: text; background-clip:text; }
.logo--footer .logo-text { color: #fff; }

/* ----- Hero ----- */
.hero {
    position: relative; min-height: 100vh; display: flex; align-items: center;
    padding: calc(var(--header-h) + 60px) 0 90px;
    background: radial-gradient(1200px 700px at 82% -10%, rgba(192,38,211,0.30), transparent 60%),
                radial-gradient(900px 620px at 0% 110%, rgba(34,211,238,0.16), transparent 60%),
                var(--plum);
    overflow: hidden;
}
.hero::before {
    content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%;
    background: var(--grad-brand); filter: blur(120px); opacity: 0.32;
    top: -120px; right: -80px; animation: float 12s ease-in-out infinite;
}
.hero-grid {
    position: relative; z-index: 2;
    display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 9px;
    background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.16);
    color: #e9d9ff; padding: 8px 16px; border-radius: var(--radius-pill);
    font-size: 0.84rem; font-weight: 600; margin-bottom: 26px;
}
.hero-badge i { color: var(--lime); }
.hero-title {
    font-family: var(--font-head); font-weight: 700; color: #fff;
    font-size: clamp(2.5rem, 5.4vw, 4rem); line-height: 1.05; letter-spacing: -1px;
    margin-bottom: 22px;
}
.hero-description { color: #c9bce0; font-size: 1.16rem; max-width: 560px; margin-bottom: 34px; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.hero-stats { display: flex; gap: 34px; flex-wrap: wrap; }
.hero-stat .num { font-family: var(--font-head); font-size: 1.7rem; font-weight: 700; color:#fff; }
.hero-stat .num span { -webkit-text-fill-color: transparent; background: var(--grad-accent); -webkit-background-clip:text; background-clip:text; }
.hero-stat .lbl { font-size: 0.82rem; color: var(--text-light); letter-spacing: 0.3px; }
.hero-visual { position: relative; z-index: 2; }
.hero-visual img { filter: drop-shadow(0 40px 70px rgba(0,0,0,0.5)); animation: floatY 7s ease-in-out infinite; }

/* ----- Section header ----- */
.section-header { max-width: 720px; margin: 0 auto 62px; text-align: center; }
.section-badge {
    display: inline-block; font-family: var(--font-head); font-weight: 600;
    font-size: 0.78rem; letter-spacing: 2px; text-transform: uppercase;
    color: var(--magenta); margin-bottom: 14px;
}
.section-title {
    font-family: var(--font-head); font-weight: 700; letter-spacing: -0.5px;
    font-size: clamp(1.9rem, 3.6vw, 2.7rem); line-height: 1.14; margin-bottom: 16px;
}
.section-description { color: var(--text-muted); font-size: 1.08rem; }

/* ----- Services (asymmetric cards, gradient top edge) ----- */
.services-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px;
}
.service-card {
    position: relative; background: var(--bg); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 34px 30px; overflow: hidden;
    transition: var(--transition);
}
.service-card::before {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--grad-brand);
    transform: scaleX(0); transform-origin: left; transition: transform 0.4s ease;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
    width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center;
    font-size: 1.5rem; color: #fff; background: var(--grad-brand); margin-bottom: 20px;
    box-shadow: 0 10px 24px rgba(139,92,246,0.32);
}
.service-card:nth-child(3n+2) .service-icon { background: var(--grad-accent); color: var(--plum); box-shadow: 0 10px 24px rgba(34,211,238,0.3); }
.service-card h3 { font-family: var(--font-head); font-size: 1.28rem; margin-bottom: 10px; }
.service-card p { color: var(--text-muted); font-size: 0.98rem; }

/* ----- Process (vertical connected timeline) ----- */
.process-track { position: relative; max-width: 860px; margin: 0 auto; }
.process-track::before {
    content: ""; position: absolute; left: 33px; top: 12px; bottom: 12px; width: 3px;
    background: linear-gradient(180deg, var(--violet), var(--magenta), var(--rose));
    border-radius: 3px; opacity: 0.5;
}
.process-step { position: relative; display: grid; grid-template-columns: 68px 1fr; gap: 24px; padding: 18px 0; }
.step-number {
    width: 68px; height: 68px; border-radius: 20px; background: var(--plum);
    color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.3rem;
    display: grid; place-items: center; position: relative; z-index: 2;
    box-shadow: 0 12px 26px rgba(30,7,60,0.35);
}
.process-step:nth-child(even) .step-number { background: var(--grad-brand); }
.process-body { padding-top: 6px; }
.process-body h3 { font-family: var(--font-head); font-size: 1.25rem; margin-bottom: 8px; }
.process-body p { color: var(--text-muted); }

/* ----- Technologies (pill cloud) ----- */
.tech-cloud { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; max-width: 880px; margin: 0 auto; }
.tech-pill {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-pill);
    padding: 12px 22px; font-family: var(--font-head); font-weight: 600; font-size: 0.98rem;
    transition: var(--transition);
}
.tech-pill i { font-size: 1.15rem; background: var(--grad-brand); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
.tech-pill:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); border-color: var(--violet); }

/* ----- About ----- */
.about-content { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-text .section-badge, .about-text .section-title { text-align: left; }
.about-text .section-title { margin-bottom: 20px; }
.about-text p { color: var(--text-muted); margin-bottom: 16px; }
.about-list { margin: 22px 0 30px; display: grid; gap: 12px; }
.about-list li { display: flex; align-items: flex-start; gap: 12px; font-weight: 500; }
.about-list i { color: var(--magenta); margin-top: 4px; }
.about-image { position: relative; }
.about-image::after {
    content: ""; position: absolute; inset: 12% 8%; border-radius: 40% 60% 55% 45%/50% 45% 55% 50%;
    background: var(--grad-brand); filter: blur(70px); opacity: 0.28; z-index: 0;
}
.about-image img { position: relative; z-index: 1; }

/* ----- Contact ----- */
.contact-content { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 44px; }
.contact-info { display: grid; gap: 20px; align-content: start; }
.contact-item {
    display: flex; gap: 16px; align-items: flex-start;
    background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px;
}
.contact-icon {
    width: 48px; height: 48px; flex: none; border-radius: 13px; display: grid; place-items: center;
    color: #fff; background: var(--grad-brand); font-size: 1.15rem;
}
.contact-item h4 { font-family: var(--font-head); font-size: 1rem; margin-bottom: 3px; }
.contact-item a, .contact-item p { color: var(--text-muted); font-size: 0.96rem; }
.contact-form {
    background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 34px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; box-shadow: var(--shadow-sm);
}
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group--full { grid-column: 1 / -1; }
.form-group label { font-size: 0.86rem; font-weight: 600; font-family: var(--font-head); }
.form-group input, .form-group select, .form-group textarea {
    font-family: var(--font-body); font-size: 0.98rem; padding: 13px 15px;
    border: 1.5px solid var(--border); border-radius: 12px; background: #fdfbff; color: var(--text);
    transition: var(--transition); width: 100%;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(139,92,246,0.14);
}
.form-group textarea { resize: vertical; }
.form-note { grid-column: 1 / -1; min-height: 20px; font-size: 0.92rem; font-weight: 600; }

/* ----- Footer ----- */
.footer { background: var(--plum-deep); color: #c9bce0; padding: 66px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-brand p { margin-top: 16px; max-width: 380px; color: #9f93b8; }
.footer-contact h4 { font-family: var(--font-head); color: #fff; margin-bottom: 14px; font-size: 1.05rem; }
.footer-contact p { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 9px; font-size: 0.95rem; }
.footer-contact i { color: var(--violet); margin-top: 4px; }
.footer-contact a { color: #c9bce0; }
.footer-contact a:hover { color: #fff; }
.footer-bottom { padding-top: 24px; text-align: center; font-size: 0.88rem; color: #7f7397; }

/* ----- Animations ----- */
@keyframes float { 0%,100% { transform: translateY(0) } 50% { transform: translateY(30px) } }
@keyframes floatY { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-18px) } }
.animate-fade-up { opacity: 0; transform: translateY(34px); transition: opacity 0.7s ease, transform 0.7s ease; }
.animate-fade-up.visible { opacity: 1; transform: none; }
.animate-fade-in { opacity: 0; transition: opacity 0.9s ease; }
.animate-fade-in.visible { opacity: 1; }
.services-grid .service-card:nth-child(2){ transition-delay:.06s }
.services-grid .service-card:nth-child(3){ transition-delay:.12s }
.services-grid .service-card:nth-child(5){ transition-delay:.06s }
.services-grid .service-card:nth-child(6){ transition-delay:.12s }

/* ----- Responsive ----- */
@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .hero-description { margin-left: auto; margin-right: auto; }
    .hero-buttons, .hero-stats { justify-content: center; }
    .hero-visual { max-width: 420px; margin: 0 auto; order: -1; }
    .about-content { grid-template-columns: 1fr; gap: 36px; }
    .about-image { order: -1; max-width: 480px; margin: 0 auto; }
    .contact-content { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
    .section { padding: 76px 0; }
    .contact-form { grid-template-columns: 1fr; padding: 24px; }
    .process-step { grid-template-columns: 56px 1fr; gap: 18px; }
    .step-number { width: 56px; height: 56px; font-size: 1.1rem; }
    .process-track::before { left: 27px; }
    .btn { width: 100%; justify-content: center; }
    .hero-buttons { flex-direction: column; }
}
