/* =============================================
   SQUARE SOFTWARE STUDIO — STYLESHEET
   ============================================= */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --c-bg:       #0a0a0f;
  --c-surface:  #111118;
  --c-surface2: #1a1a24;
  --c-border:   rgba(255,255,255,0.08);
  --c-text:     #e8e8f0;
  --c-muted:    #888899;
  --c-accent:   #6c63ff;
  --c-accent2:  #a78bfa;
  --c-white:    #ffffff;

  --font-sans:  'Inter', system-ui, sans-serif;
  --font-head:  'Space Grotesk', system-ui, sans-serif;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;

  --max-w: 1160px;
  --nav-h: 68px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

/* --- Utilities --- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 48px);
}

.accent { color: var(--c-accent2); }

.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-accent2);
  background: rgba(108, 99, 255, 0.12);
  border: 1px solid rgba(108, 99, 255, 0.25);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.section-tag--light {
  color: var(--c-white);
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: 64px;
}

.section-header h2 {
  font-family: var(--font-head);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--c-white);
  margin-bottom: 16px;
}

.section-header p {
  color: var(--c-muted);
  font-size: 17px;
  line-height: 1.7;
}

.section-header--light h2 { color: var(--c-white); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--r-sm);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
}

.btn--primary {
  background: var(--c-accent);
  color: #fff;
}
.btn--primary:hover { background: #7b73ff; transform: translateY(-1px); }

.btn--outline {
  background: transparent;
  color: var(--c-text);
  border: 1px solid var(--c-border);
}
.btn--outline:hover { border-color: var(--c-accent); color: var(--c-accent2); }

.btn--ghost {
  background: transparent;
  color: var(--c-muted);
  border: 1px solid var(--c-border);
}
.btn--ghost:hover { color: var(--c-text); border-color: rgba(255,255,255,0.2); }

.btn--full { width: 100%; }

/* =============================================
   NAVIGATION
   ============================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s;
}

.nav.scrolled {
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: var(--c-border);
}

.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 17px;
  color: var(--c-white);
}

.logo-mark {
  font-size: 22px;
  color: var(--c-accent2);
  line-height: 1;
}

.logo-mark--img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__links a:not(.btn) {
  font-size: 14px;
  font-weight: 500;
  color: var(--c-muted);
  transition: color 0.2s;
}
.nav__links a:not(.btn):hover { color: var(--c-white); }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-text);
  border-radius: 2px;
  transition: all 0.25s;
}

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + 80px);
  padding-bottom: 120px;
  overflow: hidden;
}

.hero__grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(108,99,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108,99,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 100%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  text-align: center;
  max-width: 820px;
  margin-inline: auto;
}

.hero__badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-accent2);
  background: rgba(108, 99, 255, 0.1);
  border: 1px solid rgba(108, 99, 255, 0.2);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 28px;
}

.hero__headline {
  font-family: var(--font-head);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--c-white);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero__sub {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--c-muted);
  line-height: 1.7;
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: 40px;
}

.hero__cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* =============================================
   TRUST BAR
   ============================================= */
.trust {
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  padding: 20px 0;
  background: var(--c-surface);
}

.trust__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.trust__label {
  font-size: 12px;
  font-weight: 500;
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.trust__items {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.trust__items span {
  font-size: 13px;
  font-weight: 500;
  color: var(--c-muted);
  white-space: nowrap;
}

.trust__items .divider { color: rgba(255,255,255,0.15); }

/* =============================================
   SERVICES
   ============================================= */
.services {
  padding: 100px 0;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 32px;
  transition: border-color 0.2s, transform 0.2s;
}

.card:hover {
  border-color: rgba(108,99,255,0.4);
  transform: translateY(-3px);
}

.card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-sm);
  background: rgba(108,99,255,0.1);
  border: 1px solid rgba(108,99,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--c-accent2);
}

.card__icon svg {
  width: 22px;
  height: 22px;
}

.card h3 {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 600;
  color: var(--c-white);
  margin-bottom: 10px;
}

.card p {
  font-size: 14px;
  color: var(--c-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.card ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card ul li {
  font-size: 13px;
  color: var(--c-muted);
  padding-left: 16px;
  position: relative;
}

.card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-accent);
  opacity: 0.6;
}

/* =============================================
   APPROACH
   ============================================= */
.approach {
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  padding: 100px 0;
}

.approach__steps {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.step {
  flex: 1;
  min-width: 180px;
  max-width: 220px;
  text-align: center;
}

.step__num {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  color: var(--c-accent);
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.step h3 {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 600;
  color: var(--c-white);
  margin-bottom: 10px;
}

.step p {
  font-size: 14px;
  color: var(--c-muted);
  line-height: 1.7;
}

.step__arrow {
  font-size: 24px;
  color: rgba(255,255,255,0.15);
  padding-top: 40px;
  flex-shrink: 0;
}

/* =============================================
   WHY US
   ============================================= */
.why {
  padding: 100px 0;
}

.why__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.why__text .section-tag { margin-bottom: 12px; }

.why__text h2 {
  font-family: var(--font-head);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  color: var(--c-white);
  line-height: 1.2;
  margin-bottom: 20px;
}

.why__text p {
  font-size: 16px;
  color: var(--c-muted);
  line-height: 1.75;
  margin-bottom: 16px;
}

.why__stats {
  display: flex;
  gap: 32px;
  margin-top: 36px;
  padding-top: 36px;
  border-top: 1px solid var(--c-border);
  flex-wrap: wrap;
}

.stat__num {
  display: block;
  font-family: var(--font-head);
  font-size: 36px;
  font-weight: 700;
  color: var(--c-white);
  line-height: 1;
  margin-bottom: 4px;
}

.stat__label {
  font-size: 13px;
  color: var(--c-muted);
}

.why__card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 40px;
}

.why__card blockquote {
  font-size: 17px;
  color: var(--c-text);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 28px;
  position: relative;
  padding-left: 20px;
}

.why__card blockquote::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 3px;
  background: var(--c-accent);
  border-radius: 2px;
}

.why__card-attr {
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-accent), var(--c-accent2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.why__card-attr strong {
  display: block;
  font-size: 14px;
  color: var(--c-white);
  margin-bottom: 2px;
}

.why__card-attr span {
  font-size: 13px;
  color: var(--c-muted);
}

/* =============================================
   CONTACT
   ============================================= */
.contact {
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  padding: 100px 0;
}

.contact__inner {
  max-width: 640px;
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--c-text);
}

.form-group input,
.form-group textarea {
  background: var(--c-surface2);
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--c-text);
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(136,136,153,0.6);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--c-accent);
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--c-bg);
  border-top: 1px solid var(--c-border);
  padding-top: 60px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer__brand p {
  font-size: 14px;
  color: var(--c-muted);
  margin-top: 12px;
  max-width: 280px;
  line-height: 1.6;
}

.footer__brand .nav__logo {
  margin-bottom: 4px;
}

.footer__links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.footer__links > div {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__links strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--c-text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.footer__links a {
  font-size: 14px;
  color: var(--c-muted);
  transition: color 0.2s;
}
.footer__links a:hover { color: var(--c-text); }

.footer__bottom {
  border-top: 1px solid var(--c-border);
  padding: 20px 0;
}

.footer__bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__bottom span {
  font-size: 13px;
  color: var(--c-muted);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .why__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .step__arrow { display: none; }

  .approach__steps {
    flex-direction: column;
    align-items: center;
  }

  .step {
    max-width: 100%;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(10, 10, 15, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--c-border);
    padding: 24px 20px 32px;
    gap: 20px;
    z-index: 99;
  }
  .nav__links.open a:not(.btn) {
    font-size: 16px;
  }
  .nav__burger { display: flex; }

  .form-row { grid-template-columns: 1fr; }

  .footer__inner { grid-template-columns: 1fr; }
  .footer__links { grid-template-columns: 1fr 1fr; }

  .services__grid { grid-template-columns: 1fr; }

  .why__stats { gap: 20px; }
}

/* =============================================
   ABOUT PAGE
   ============================================= */
.about-page {
  padding-top: calc(var(--nav-h) + 80px);
  padding-bottom: 120px;
  min-height: 70vh;
}

.about-page__inner {
  max-width: 800px;
}

.about-page__inner h1 {
  font-family: var(--font-head);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  color: var(--c-white);
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.about-page__inner .section-tag {
  margin-bottom: 16px;
}

.about-page__placeholder {
  color: var(--c-muted);
  font-size: 17px;
}

.nav__active {
  color: var(--c-white) !important;
}

.about-header {
  margin-bottom: 72px;
}

/* --- Founder section --- */
.founder {
  padding-top: 48px;
  border-top: 1px solid var(--c-border);
}

.founder__card {
  display: flex;
  gap: 36px;
  align-items: flex-start;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 40px;
}

.founder__avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-accent), var(--c-accent2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.founder__body {
  flex: 1;
  min-width: 0;
}

.founder__name-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.founder__name-row h3 {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  color: var(--c-white);
  margin-bottom: 4px;
}

.founder__title {
  font-size: 14px;
  color: var(--c-accent2);
  font-weight: 500;
}

.linkedin-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  background: #0a66c2;
  border: none;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.linkedin-btn:hover {
  background: #0958a8;
  transform: translateY(-1px);
}

.founder__bio {
  font-size: 15px;
  color: var(--c-text);
  line-height: 1.75;
}

.founder__bio--placeholder {
  color: var(--c-muted);
  font-style: italic;
}

@media (max-width: 600px) {
  .founder__card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .founder__name-row {
    flex-direction: column;
    align-items: center;
  }
}

/* =============================================
   ANIMATIONS
   ============================================= */
.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 480px) {
  .hero__cta { flex-direction: column; align-items: center; }
  .hero__cta .btn { width: 100%; max-width: 280px; }
  .footer__links { grid-template-columns: 1fr; }
}
