/* ========================
   CSS VARIABLES & RESET
======================== */
:root {
  --c-bg: #f7f5f0;
  --c-surface: #ffffff;
  --c-primary: #ff5c2b;
  --c-primary-dark: #e04420;
  --c-accent: #1a1a2e;
  --c-accent2: #4361ee;
  --c-text: #1a1a2e;
  --c-text-muted: #6b7280;
  --c-border: #e8e4dd;
  --c-tag-bg: #fff0eb;
  --c-tag-text: #ff5c2b;
  --radius: 16px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(26,26,46,.08);
  --shadow-lg: 0 12px 48px rgba(26,26,46,.14);
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--c-bg);
  color: var(--c-text);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ========================
   LAYOUT
======================== */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}
.section { padding: 90px 0; }

/* ========================
   TYPOGRAPHY
======================== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  font-weight: 800;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); }
h3 { font-size: 1.3rem; font-weight: 700; }

.accent { color: var(--c-primary); }
.section-label {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-primary);
  background: var(--c-tag-bg);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.section-title { margin-bottom: 48px; }

/* ========================
   BUTTONS
======================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 500;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .22s ease;
}
.btn-primary {
  background: var(--c-primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--c-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,92,43,.3);
}
.btn-outline {
  background: transparent;
  border-color: var(--c-accent);
  color: var(--c-accent);
}
.btn-outline:hover {
  background: var(--c-accent);
  color: #fff;
  transform: translateY(-2px);
}
.btn-lg { padding: 18px 40px; font-size: 1rem; }
.btn-hire {
  display: inline-block;
  background: var(--c-primary);
  color: #fff;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: .9rem;
  transition: all .2s;
}
.btn-hire:hover { background: var(--c-primary-dark); }

/* ========================
   HEADER
======================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247,245,240,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 16px 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--c-accent);
}
.logo-icon { color: var(--c-primary); font-size: 1rem; }
.logo-dot { color: var(--c-primary); }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav-link {
  padding: 8px 16px;
  border-radius: 50px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--c-text-muted);
  transition: all .18s;
}
.nav-link:hover, .nav-link.active {
  background: var(--c-accent);
  color: #fff;
}
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-text);
  border-radius: 2px;
  transition: .2s;
}

/* ========================
   HERO
======================== */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 80px 0;
}
.hero-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .25;
}
.shape-1 {
  width: 500px; height: 500px;
  background: #ff5c2b;
  top: -100px; right: -100px;
}
.shape-2 {
  width: 300px; height: 300px;
  background: #4361ee;
  bottom: 0; left: 10%;
}
.shape-3 {
  width: 200px; height: 200px;
  background: #ffd600;
  top: 30%; left: 40%;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 600px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--c-border);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 500;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
  animation: fadeInUp .6s ease both;
}
.hero-title {
  animation: fadeInUp .6s .1s ease both;
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--c-text-muted);
  margin-bottom: 36px;
  animation: fadeInUp .6s .2s ease both;
}
.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp .6s .3s ease both;
  margin-bottom: 56px;
}
.hero-stats {
  display: flex;
  gap: 32px;
  animation: fadeInUp .6s .4s ease both;
}
.stat { display: flex; flex-direction: column; }
.stat-n {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--c-primary);
}
.stat-l { font-size: .8rem; color: var(--c-text-muted); }

/* Phone mockup */
.hero-device {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  animation: float 4s ease-in-out infinite;
}
.phone-mockup {
  width: 220px;
  height: 420px;
  background: var(--c-accent);
  border-radius: 36px;
  padding: 16px 12px;
  box-shadow: var(--shadow-lg), 0 0 0 8px rgba(26,26,46,.08);
}
.phone-screen {
  background: #f0f4ff;
  border-radius: 24px;
  height: 100%;
  padding: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.app-bar {
  height: 10px;
  background: var(--c-primary);
  border-radius: 6px;
  width: 60%;
}
.app-card {
  height: 60px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.app-card.short { height: 40px; width: 70%; }
.app-row {
  display: flex;
  gap: 8px;
}
.app-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--c-primary);
  opacity: .7;
}
.app-dot:nth-child(2) { background: var(--c-accent2); }
.app-dot:nth-child(3) { background: #ffd600; }
.app-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 80px;
  margin-top: auto;
}
.bar {
  flex: 1;
  background: var(--c-primary);
  border-radius: 4px 4px 0 0;
  opacity: .7;
  animation: barGrow .8s ease both;
}
.bar:nth-child(2) { background: var(--c-accent2); animation-delay: .1s; }
.bar:nth-child(3) { background: var(--c-primary); animation-delay: .2s; }
.bar:nth-child(4) { background: var(--c-accent2); animation-delay: .3s; }
.bar:nth-child(5) { background: #ffd600; animation-delay: .4s; }

/* ========================
   ABOUT
======================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  align-items: center;
}
.about-img-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.about-avatar {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-accent2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.about-location-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow);
  font-size: .9rem;
}
.flag { font-size: 1.5rem; }
.about-location-card strong { display: block; }
.about-location-card small { color: var(--c-text-muted); }
.about-text h2 { margin-bottom: 16px; }
.about-text p { color: var(--c-text-muted); margin-bottom: 16px; }
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.skill-tag {
  padding: 6px 14px;
  background: var(--c-tag-bg);
  color: var(--c-primary);
  border-radius: 50px;
  font-size: .82rem;
  font-weight: 500;
  border: 1px solid rgba(255,92,43,.15);
}

/* ========================
   WHY / ADVANTAGES
======================== */
.why-section { background: var(--c-accent); color: #fff; }
.why-section .section-label { background: rgba(255,255,255,.1); color: #fff; }
.why-section h2 { color: #fff; margin-bottom: 56px; }
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.adv-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 32px;
  transition: all .22s;
}
.adv-card:hover {
  background: rgba(255,255,255,.1);
  transform: translateY(-4px);
}
.adv-icon { font-size: 2rem; margin-bottom: 16px; }
.adv-card h3 { color: #fff; margin-bottom: 10px; }
.adv-card p { color: rgba(255,255,255,.65); font-size: .95rem; }

/* ========================
   FEATURED PROJECT
======================== */
.featured-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  background: var(--c-surface);
  border-radius: 24px;
  padding: 56px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--c-border);
}
.featured-badge {
  display: inline-block;
  background: #fff3cd;
  color: #b45309;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 600;
  margin-bottom: 16px;
}
.featured-text h2 { margin-bottom: 16px; }
.featured-text p { color: var(--c-text-muted); margin-bottom: 24px; }
.featured-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 32px;
  color: var(--c-text-muted);
  font-size: .95rem;
}
/* Wallet mockup */
.wallet-mockup {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%);
  border-radius: 20px;
  padding: 28px;
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.wallet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  font-weight: 700;
  font-size: 1rem;
}
.wallet-badge {
  background: var(--c-primary);
  color: #fff;
  font-size: .7rem;
  padding: 3px 8px;
  border-radius: 4px;
}
.wallet-balance {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
}
.wallet-label {
  font-size: .8rem;
  color: rgba(255,255,255,.5);
  margin-bottom: 20px;
}
.wallet-coins { display: flex; flex-direction: column; gap: 10px; }
.coin {
  display: flex;
  justify-content: space-between;
  background: rgba(255,255,255,.08);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: .9rem;
}
.coin.btc { border-left: 3px solid #f7931a; }
.coin.eth { border-left: 3px solid #627eea; }
.coin.sol { border-left: 3px solid #9945ff; }
.coin span { color: rgba(255,255,255,.7); }

/* ========================
   CTA SECTION
======================== */
.cta-section { background: var(--c-primary); }
.cta-inner {
  text-align: center;
  padding: 20px 0;
}
.cta-inner h2 { color: #fff; margin-bottom: 12px; }
.cta-inner p { color: rgba(255,255,255,.8); margin-bottom: 32px; font-size: 1.1rem; }
.cta-inner .btn-primary {
  background: #fff;
  color: var(--c-primary);
}
.cta-inner .btn-primary:hover {
  background: var(--c-accent);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
}

/* ========================
   INNER HERO
======================== */
.inner-hero {
  padding: 80px 0 48px;
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
}
.inner-hero h1 { margin-bottom: 12px; }
.inner-hero p { color: var(--c-text-muted); font-size: 1.05rem; }

/* ========================
   PORTFOLIO
======================== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.project-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  transition: all .22s;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.project-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--c-primary);
}
.project-card.featured-project {
  grid-column: span 3;
  background: linear-gradient(135deg, #fff8f6 0%, #fff 100%);
  border-color: var(--c-primary);
}
.project-tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  width: fit-content;
}
.project-tag.own { background: #fff0eb; color: var(--c-primary); }
.project-tag.client { background: #e8f4fd; color: #0369a1; }
.project-tag.mvp { background: #f0fdf4; color: #16a34a; }
.project-icon { font-size: 2.5rem; }
.project-type { font-size: .85rem; color: var(--c-text-muted); font-weight: 500; }
.project-card p { color: var(--c-text-muted); font-size: .95rem; flex: 1; }
.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.project-tech span {
  background: #f3f4f6;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .78rem;
  color: var(--c-text-muted);
}
.project-features { display: flex; flex-direction: column; gap: 4px; }
.pf { font-size: .9rem; color: var(--c-text-muted); }
.project-status { font-size: .85rem; color: var(--c-text-muted); padding-top: 8px; border-top: 1px solid var(--c-border); }

/* ========================
   PRICING
======================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}
.pricing-card {
  background: var(--c-surface);
  border: 2px solid var(--c-border);
  border-radius: var(--radius);
  padding: 36px;
  position: relative;
  transition: all .22s;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pricing-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.pricing-card.popular {
  border-color: var(--c-primary);
  transform: scale(1.04);
  box-shadow: 0 16px 48px rgba(255,92,43,.18);
}
.pricing-card.popular:hover { transform: scale(1.04) translateY(-4px); }
.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--c-primary);
  color: #fff;
  padding: 4px 20px;
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 700;
  white-space: nowrap;
}
.pricing-tier {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--c-text-muted);
}
.pricing-price {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--c-accent);
  line-height: 1;
}
.pricing-price span { font-size: 1rem; font-weight: 400; color: var(--c-text-muted); }
.pricing-desc { font-size: .9rem; color: var(--c-text-muted); }
.pricing-list { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pricing-list li { font-size: .9rem; color: var(--c-text-muted); }
.pricing-note {
  margin-top: 48px;
  background: #f0f7ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius);
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pricing-note p { font-size: .95rem; color: var(--c-text); }
.addons-section { margin-top: 72px; }
.addons-section .section-title { margin-bottom: 32px; }
.addons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.addon-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all .18s;
}
.addon-card:hover { border-color: var(--c-primary); box-shadow: var(--shadow); }
.addon-icon { font-size: 1.6rem; }
.addon-card strong { display: block; font-size: .95rem; }
.addon-card span { font-size: .85rem; color: var(--c-primary); font-weight: 600; }

/* ========================
   CONTACT
======================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 64px;
  align-items: start;
}
.contact-info h2 { margin-bottom: 32px; }
.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
  align-items: flex-start;
}
.contact-icon {
  font-size: 1.4rem;
  width: 44px;
  height: 44px;
  background: var(--c-tag-bg);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-item strong { display: block; margin-bottom: 4px; }
.contact-item p { color: var(--c-text-muted); font-size: .95rem; }
.contact-item small { color: var(--c-text-muted); font-size: .82rem; }
.contact-item a { color: var(--c-primary); font-weight: 500; }
.contact-form-wrap h2 { margin-bottom: 28px; }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: .88rem; font-weight: 600; color: var(--c-text); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 2px solid var(--c-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: .95rem;
  background: var(--c-surface);
  color: var(--c-text);
  transition: border-color .18s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--c-primary);
}
.form-group textarea { resize: vertical; }

/* ========================
   LEGAL
======================== */
.legal-content { max-width: 760px; margin: 0 auto; }
.legal-block { margin-bottom: 40px; }
.legal-block h2 {
  font-size: 1.3rem;
  margin-bottom: 14px;
  color: var(--c-accent);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--c-border);
}
.legal-block p { color: var(--c-text-muted); margin-bottom: 12px; font-size: .97rem; }
.legal-block ul { margin-left: 20px; list-style: disc; }
.legal-block ul li { color: var(--c-text-muted); margin-bottom: 6px; font-size: .97rem; }
.legal-block a { color: var(--c-primary); text-decoration: underline; }

/* ========================
   FOOTER
======================== */
.site-footer {
  background: var(--c-accent);
  color: rgba(255,255,255,.7);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-brand .logo-text { color: #fff; }
.footer-brand .logo-icon { color: var(--c-primary); }
.footer-tagline { font-size: .85rem; margin-top: 4px; }
.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-links a { font-size: .9rem; transition: color .18s; }
.footer-links a:hover { color: var(--c-primary); }
.footer-copy { font-size: .82rem; width: 100%; text-align: center; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); }

/* ========================
   ANIMATIONS
======================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(-50%) translateX(0); }
  50%       { transform: translateY(calc(-50% - 14px)) translateX(0); }
}
@keyframes barGrow {
  from { transform: scaleY(0); transform-origin: bottom; }
  to   { transform: scaleY(1); transform-origin: bottom; }
}

/* ========================
   RESPONSIVE
======================== */
@media (max-width: 1024px) {
  .advantages-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .project-card.featured-project { grid-column: span 2; }
  .pricing-grid { grid-template-columns: 1fr; gap: 32px; }
  .pricing-card.popular { transform: none; }
  .addons-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-card { grid-template-columns: 1fr; gap: 40px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-img-wrap { flex-direction: row; }
  .hero-device { display: none; }
}
@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .nav { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0; right: 0;
    background: var(--c-surface);
    padding: 16px;
    border-bottom: 1px solid var(--c-border);
    z-index: 99;
  }
  .burger { display: flex; }
  .btn-hire { display: none; }
  .header-inner { position: relative; }
  .advantages-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .project-card.featured-project { grid-column: span 1; }
  .addons-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .featured-card { padding: 28px; }
  .about-img-wrap { flex-direction: column; align-items: flex-start; }
  .hero-stats { gap: 20px; }
  .hero-cta { flex-direction: column; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-links { gap: 12px; }
}
